Friday, November 4, 2016

How to change a chart color scheme to not revert back to spotfire's standard categorical color scheme

The solution is to define a custom color scheme and set that as the default categorical/continuous color scheme for the particular columns you will be setting via property control.

The only catch is that this will only work if the columns are all continuous or all categorical. Mixing them will not work.

  1. For each column you will be coloring by (all in the drop-down), save your colors as a 'Document Color Scheme
      a. Select column from the property control drop-down (for example 'MyFirstColumn').
      b. Change the "Color By" colors as desired (either via Legend or via visualization > Properties > Colors).
      c. Right click on your visualization > Properties > Colors > Click the 'Color Schemes' button (To the right of the 'One scale per' drop-down) > Save as > Document Color Scheme...
      d. Use a name like 'MyFirstColumn_Color'.
  2. Define this color scheme as the default for this column
      a. Go to Edit > Column Properties > Select the Data Column in question (for example 'MyFirstColumn').
      b. Go to the Properties tab > Edit the 'DefaultCategoricalColorScheme' or 'DefaultContinuousColorScheme' Property for that column (depending on whether your column is categorical or continuous).
      c. Add in the value that matches the Document Color Scheme you saved earlier (for example, 'MyFirstColumn_Color').
      d. Click OK (twice) to save all changes.

No comments:

Post a Comment