Provides access to the datagraph color table.
This interface manages color information for a DataGraph. Each graph marker is assigned a color. Some examples of graph markers are bars, columns, and pie slices (yum).
| Description | ||
|---|---|---|
![]() |
ColorEnum | The color enum of a position in the color table. |
![]() |
ColorRGB | The RGB value of a position in the color table. |
![]() |
PaletteIndex | The palette index of the color table. |
![]() |
Reset | Resets the color table to the default settings. |
![]() |
Size | Size of the color table. |
| CoClasses and Classes | Description |
|---|---|
| DataGraph | A container for the display and manipulation of a data graph. |
ColorRGB represents the marker color at the specified index in the graph. The value stored is itself an index, the index for that color in the current color palette. The table below lists the first 16 of these colors by their color palette index. The first 32 colors are the same for all color palettes.
For values 0 through 15, the value stored in ColorRGB is the same as the value stored in ColorEnum.
The current color palette is accessed via PaletteIndex.
Reset assigns new colors to the graph based on the current color palette.
Size is either the number of markers in the graph or the number of useable colors in the current color palette, whichever is smaller.
| Description | Index | R | G | B |
|---|---|---|---|---|
| Black | 0 | 0 | 0 | 0 |
| Blue | 1 | 0 | 0 | 128 |
| Green | 2 | 0 | 128 | 0 |
| Cyan | 3 | 0 | 128 | 128 |
| Red | 4 | 128 | 0 | 0 |
| Magenta | 5 | 128 | 0 | 128 |
| Brown | 6 | 128 | 128 | 0 |
| Light Gray | 7 | 192 | 192 | 192 |
| Gray | 8 | 128 | 128 | 128 |
| Light Blue | 9 | 0 | 0 | 255 |
| Light Green | 10 | 0 | 255 | 0 |
| Light Cyan | 11 | 0 | 255 | 255 |
| Light Red | 12 | 255 | 0 | 0 |
| Light Magenta | 13 | 255 | 0 | 255 |
| Yellow | 14 | 255 | 255 | 0 |
| White | 15 | 255 | 255 | 255 |
For new graphs, colors are assigned to graph markers in an order independent of their index in the current color palette.
You can change which colors are assigned, and the order in which they are assigned using the ArcMap Advanced Settings Utility. This application is installed with ArcGIS and can be found the \ArcGIS\Utilities folder.
If there are more markers in the graph then useable colors in the current color palette, then colors are resused from the palette in the order that they appear in the Advanced Settings Utility.
Use the ArcMap Advanced Settings Utility to identify color values greater than 15.