Skip to Main Content
Spotfire Ideas Portal
104 VOTE
Status Future Consideration
Product Spotfire
Categories Visualization
Created by Guest
Created on Jan 13, 2017

Keep Colour schema when change the Colour dimension

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
  • Attach files
  • Guest
    Reply
    |
    Mar 14, 2022

    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

  • Guest
    Reply
    |
    Apr 23, 2021

    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.

  • Guest
    Reply
    |
    Feb 22, 2017

    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.

  • Guest
    Reply
    |
    Jan 31, 2017

    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

  • Guest
    Reply
    |
    Jan 19, 2017

    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:

    • https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-41465
28 MERGED

Remember color settings when the ColorBy field is modified by a document property control

Merged
If we use a dropdown property control to change the color by variable, and then if we modify the colors as seen by default, they should be retained when the dropdown item is changed.
over 8 years ago in Spotfire / Visualization 0 Future Consideration