Corda® graphs use color themes to define a set of colors it applies, in succession, to graph series. For example, the first series gets the first color in the theme, the second series gets the second color in the theme, and so forth.
Corda Builder™ comes with several predefined color themes, but you may find it useful to develop custom color themes to fit your organization’s specific needs. Add a new color theme by modifying PCColors.xml.
Important: Backup any files that you want to modify before actually changing them.
To create a new color theme
Locate <product_root>\Resources\config\PCColors.xml.
Open the file using an XML or text editor.
The file looks something like this:
Color Themes XML File
<ChartColorSchemes Version="1.0">
<Scheme Name="Default">
<Color1 Red="0" Green="153" Blue="51" />
<Color2 Red="153" Green="0" Blue="204" />
<Color3 Red="255" Green="153" Blue="0" />
<Color4 Red="153" Green="51" Blue="51" />
<Color5 Red="30" Green="30" Blue="220" />
<Color6 Red="102" Green="102" Blue="0" />
<Color7 Red="255" Green="102" Blue="0" />
<Color8 Red="0" Green="102" Blue="204" />
<Color9 Red="204" Green="204" Blue="0" />
<Color10 Red="0" Green="110" Blue="0" />
<Color11 Red="102" Green="153" Blue="255" />
<Color12 Red="200" Green="30" Blue="30" />
<Color13 Red="204" Green="153" Blue="255" />
<Color14 Red="135" Green="84" Blue="0" />
<Color15 Red="220" Green="10" Blue="130" />
<Color16 Red="0" Green="85" Blue="0" />
</Scheme>
...
</ChartColorSchemes>
Add a new color scheme by adding another scheme property to PCColors.xml.
The easiest way to do this is to copy an existing scheme and paste it at the end of PCColors.xml, then modify the attributes and child properties to fit the needs.
Each Scheme property includes of a Name attribute, which specifies the scheme name, and sixteen color child properties, Color1 through Color16, each of which represents one color in the color scheme. The color properties have the following attributes:
Red: Specifies the R value in the RGB setting, and can be any whole number between 0 and 255.
Green: Specifies the G value in the RGB setting, and can be any whole number between 0 and 255.
Blue: Specifies the B value in the RGB setting, and can be any whole number between 0 and 255.
Alpha: This optional attribute specifies the transparency of the color, and can be any whole number between 0 and 255. An Alpha of 0 makes the color solid, and an Alpha of 255 makes the color invisible, with varying degrees of translucency in between these extremes.
For example:
<Color1 Red="255" Green="0" Blue="0" Alpha="80"/>
Save the file.
Restart Corda Builder and/or the Corda Server™.
To modify existing themes in the PCColors.xml file, change the Red, Green, and Blue attributes for the appropriate <ColorXX> tags in the desired <Scheme> property.
Alternatively, click the ellipsis button
in Graph
Settings > Color Palette to open the Color
Editor, from which you can modify specific color settings in an
existing color theme.
