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

Namespace: Spotfire.Dxp.Application.Visuals
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 13.19.7018.3940 (13.19.7018.3940)
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;
See Also