Chart colors

Report administrators can change the look of charts by specifying colors used to represent specific report data categories.

You can configure the system to use the same color for all bars on a bar or column chart. You can also define new system colors that can be used in charts. The following reports use the color palette specified on the Style tab of the Report designer:
  • Pie charts
  • Bar and column charts that have a Stack by or Group by value
  • Line and trend reports that have a Stack by or Group by value
Bar and column charts and line and trend reports that do not have a Stack by or Group by value use one color.

Using chart colors

Newly generated bar or pie chart reports update the Chart Colors list to show each data category for the report and the color associated with the category. The colors used in bar and pie charts for a particular data category are consistently used across all bar and pie charts created. For example, priority 1 incidents in a chart always have the same color and do not change color based on their relative position within the chart.

Colors from the following list are automatically assigned to each category the first time the category is used in a chart. If there are more than 15 possible categories, the colors repeat.
Figure 1. Chart colors

Define colors for report data categories

You can define colors for a specific value for a data category.

About this task

Role required: report_admin

Procedure

  1. Navigate to Reports > Administration > Chart Colors.
  2. Click New.
    Figure 2. New Chart Colors form
  3. Fill in the fields, as appropriate.
    Table 1. New Chart Colors form
    Name Description
    Name Table used for the report.
    Note: The list shows only tables and database views that are in the same scope as the chart colors record.
    Element Column name specific to the selected table.
    Value The sys_id of the value for which the specified color should be displayed. See The unique record identifier (sys_id)The unique record identifier (sys_id).
    Color name Color name, as defined in the Color Definition module. When a report is generated, this color is used to represent the specified Value.
    Color Hexadecimal value used to specify a color that is not already defined in the Color Definition module.
    Note: If the Color name field contains a value, the Color field is ignored.
  4. Click Submit.

Result

The value selected in the Element field for the table in the Name field is displayed with the specified color.

Define system colors for reports

You can define colors that the system uses in reports.

Procedure

  1. Navigate to Reports > Administration > Color Definition.
  2. Click New.
  3. Fill in these fields.
    Table 2. New color definition form
    Name Description
    Name Enter a unique name for the new color.
    Color Enter a hexadecimal value, for example #003366.
  4. Click Submit.

What to do next

The default color scheme glide.ui.chart.default.colors contains the following 20 colors:
Figure 3. Default colors