In any graph, If the dimension on colours section change, the Colour scheme will change with to the default one. I think it would be more correct if it the graph keep the same color scheme even if the dimension that manage the colour change.
We set up a custom color schema for a bar chart and we are using a drop down list to change dynamically the color dimension. The issue we have now is on the change of custom colour scheme to the default one, every time we are changing the color dimension.
Thanks,
Alessandro
Hi @sean thanks for this tip. Nevertheless, Spotfire should just store the most recent color mappings per column, so they can be retrieved. It already does this in a way with the undo stack. This would require (many) fewer clicks, and generalize the behavior (you could have a default that you set up, but if you change the coloring en route, the changed coloring will still be remembered the next time you go back to the column.
I dont see how the "default" coloring works. With this tip, one has to set the "value" property, not the "default" property. How does the "default" coloring property work?
JP
Agree with property's control for which colour settings are not saved. And even setting a colour rule doesn't work, the rule is removed automatically just after.
I have had issues with this specifically, and I have mostly solved it with Python. However, the issue still occurs when switching between two numeric fields, as there seems to be trouble with matching the colors to values. For example, if I had the colors binning into 3 bins, and I want them colors from lowest to greatest red, yellow, green, when I use a property control drop down to change the color by to another numeric binned column (still 3 bins), it won't apply red, yellow, green easily (even via Python). And then the colors constantly change with my filtering. I select a specific state, for example, which would still have 3 bins, but clearly different limits to the bins than it had for the entire data set, I get random colors. I wish Python could differentiate "use colors only" and "use colors match to values" from a saved document color scheme.
Hi Sean,
Thanks for your suggestion, it work when we use the directly the column reference into the axis.
But using a Property Control's drop-down value to control the colour axis I am using now a script that set the colour, base on predefined colour schema, every time the variable selected will change.
Thanks,
Alessandro
Please see this KB article on defining a default color schemes for the columns used in your bar chart, so that you can have those color schemes automatically used when the column is referenced on a visualization axis: