Locking color scheme between two visualizations - spotfire

I followed the instructions of this post to create a cross table and convert it to a scrolling legend that links to a plot.
Both the plot and the cross table are sourced from the same data table that gets refreshed with new data from a data node every time the user executes the query. The schema remains the same.
I used the "Spotfire Categorical" color scheme for both the plot and the crossTable so that their colors would match. However every time the query is executed and the data table is refreshed, the color scheme gets reset and I have to redefine the color scheme for the two visualisations again.
Is there a way to lock the color scheme between the two visualisations so that it stays the same even if the data table is refreshed?
Any insight would be greatly appreciated!

Related

Change Excel chart legend text entry without editing the data?

I have a Powerpoint presentation that I need to refine and it includes some charts from Excel (I did not make them). However, those charts were copypasted and the originals are no longer available - but some legend text entries are wrong because the data were modified in the meantime. Is there a way to change ONLY the entries without going on Excel and selecting the data? Basically doing it visually in some way? The data on Excel are still the same, it's only the name of the series the charts refer to that has changed, but doing the charts from scratch all over again would require quite a lot of time because the format of the original Excel tables is now completely different.
Essentially the charts are just fine, the colours are also fine, it's just one legend entry that is wrong.
Copy as an image then edit using a picture editor.
But how was the data updated as you state it was modified then you say the data is still the same.
You could even make a dummy chart and create the legends in the correct font and size, then copy those and paste on the original image, done with an eye for detail and it won't be noticeable.

Excel 2016 Chart Data Labels Always Empty

I have several bar charts, all configured to show Data Labels.
The data labels object box is showing (I can also apply Fill and Border colors to it). However, this object is always EMPTY. Regardless of what I tick to show (e.g. Values, Values from Cells, Series Name, etc...) - it is always empty, with the minimum (shrunk) width (as it should expand per the value presented). If I tick to show the "Legend Key" - a colored square does show to the left of the empty label box.
There's no issue with the font definition, or colors, but it seems as if some underlying theme-wide setting is causing this behavior with all charts on this Workbook.
I have a matching Workbook before some formatting (branding) were applied, in which Data Labels are working just fine. I compared all Data Labels settings and options - they are identical.
Any idea where else can I look?
Thanks!
Updating here that the issue is solved.
I believe it is some sort of a bug in Excel 2016.
I deleted the Data Labels and Re-created them, now it is working normally.
I have to delete per each chart where this problem was evident.

Set specific color for a Legend in a dynamic Pivot Chart

I have a pivot chart with data coming from a Power Query - SQL Source. Colors in Pivot Chart follow a pattern depending on the number of legends. It always starts with light blue (based on my theme choice) but legend values are not static since it is referencing from a live data - Chart 1 starts with <30d and Chart 2 is >=90d, but both are light blue which is confusing.
I am aware of Macros and tried applying it upon opening the Excel but this will not work if the refreshed data changed the number of legends in the chart. (e.g. Chart 2 now has 2 legend values) and it refreshes weekly.
What i'm looking for is a way to bind a color to specific text - <30d is Red for all charts. If there's a documentation about this that doesn't include Macros that will be best. I've tried finding an IF (legend = <30d) in Macro; spent hours already but is still unsuccessful in doing so.
To anyone with the same issue, i loaded the data from Power Query to a Worksheet and not to a Data Model. Now when i change the color for a legend and the data refreshes, it will not revert to a default color scheme.

I wish to apply a background color to ONLY the cells in a specific dataGrid column?

I asked this question on the LiveCode email list. No response, so I figure it must not be possible. I know about editing the template graphic that enables alternating row colors. That doesn't help me.
This lesson is the closest to what I have found, but it only sets the overlay color to empty cells. It also had an unwanted affect, where any data that was present in the grid no longer shows up.
http://lessons.runrev.com/s/lessons/m/datagrid/l/7327-how-do-i-override-the-default-behavior-for-rendering-data-to-a-cell
As a little experiment, since the data became invisible (note that I'm on WinXP), I tried placing an opaque graphic over the column I wish to colorize. I set the ink of the graphic to AddMax or AddOver, and it looked nice, but the text in the cells disappeared. Then I tried setting the ink to AddMin, and it still looks good, but the test shows through!!!!
So, I think this will work fine visually, but how can I pass a double-click through this graphic to the cell underneath (to allow cell editing only within this column)?
Yes, you can do this.
This suggestion comes from Trevor DeVore at http://www.bluemangolearning.com/
Create a custom column template using the property inspector. From there you can edit the behavior of the column to colorize the background color of the field for that column or just edit the field in the template group to change the color.
The background color will only show up in rows that have data, however.

Dynamics AX - Color multiple grid cells in different colors

In Dynamics AX 2012, is there a way to change the background color of multiple cells to different colors?
Order Status Ship Status Order ID
[green] [red] SO-1234
[green] [green] SO-1235
[red] [red] SO-1236
I've written a displayOption override that can change the color of one cell, but it seems to apply all the changes at the end, so whatever the last color you specify is the one that gets applied to all cells.
_options.backColor(46080); //green
_options.affectedElementsByControl(OrderStatus.id());
//is there anyway to apply the first change, so I can make a second one?
_options.backColor(255); //red
_options.affectedElementsByControl(ShipStatus.id());
In the code listed above, both cell background colors would be red.
Any suggestions?
Thanks
I had a similar task to accomplish, and I did not find a way to do it in Ax (well, techinically you could try Table control, but I strongly encourage you NOT to do so - you will end up swearing out aloud).
What I did is implemented a WPF user control and used this post as a template.
This is a small tutorial (found in Answer #7) which shows how to implement a cell background converter in built-in WPF data grid control, to accomplish the task.
After you have it implemented you can populate your datagrid by using LINQ (if using AX 2012 R2), web services, or passing a temporary table - there are many ways to access AX data.
It may not be the ultimate solution, but it works.
I did it using a table control ( although Maciej advised you not to do ).
It works without problems.
You need to add a table control which gets your data and set the property
ColorScheme to RGB
Then, override the FormControl editControl(int column, int row)
You can access each value by value = data.cell(column, row).data(); whereby data is the name of the table control.
Beware, that you have to add a control with the correct datatype to the table control and give it a name. Also set the ColorScheme property to RGB.
If you got RGB values for your desired background color, setting this color can be done by
RealEdit.backgroundColor(WinAPI::RGB2int(real2int(R),real2int(G),real2int(B)));
RealEdit is the name of the added control.
I've done this to display a matrix filled with values between 0 and 1 and to display a color gradient overlay with a range from green to red. See this link, if you like more information about the color conversion.

Resources