CategoricalColorRule Item Property (CategoryKey) TIBCO Spotfire 6.5 API Reference
Gets or sets the color for a category.

Namespace: Spotfire.Dxp.Application.Visuals.ConditionalColoring
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax

public Color this[
	CategoryKey category
] { get; set; }

Return Value

Type: Color
The color for the category.
Examples

The following sample shows how to set the color for the categories "male" and "female":
plot.ColorAxis.Categorical.ColorMap[new CategoryKey("male")] = Color.Blue;
plot.ColorAxis.Categorical.ColorMap[new CategoryKey("female")] = Color.Red;
Version Information

Supported in: 6.5, 6.0, 5.5, 5.0, 4.5
See Also