Setting the Number of Slices and Color in a Chart

How to:

When working with charts, you can modify the number of slices that display. You can specify up to 18 slices, to which a unique color will be assigned. For any number of slices larger than 18, colors will begin repeating within charts. You can use the following procedure to alter the number of slices in your chart.

Note: It is recommended that you avoid the addition of too many more slices as the chart becomes unreadable when too many slices are displayed.


Top of page

x
Procedure: How to Specify the Number of Slices
  1. Edit the included_stylesheet.xslt file in the \ibi\WebFOCUS80\config\magnify directory.
  2. Locate the following variable in the included_stylesheet.xslt file:
    var category_top_chart_slices=7;

    Note: By default, this value is set to 7 (excluding the Other slice). The value must be a numerical value (1 or higher).

    You can use the following procedure to enable auto-coloring for your chart, which will apply the automatic rule of 18 colors for any given chart.


Top of page

x
Procedure: How to Enable Auto-Coloring for Charts
  1. Edit the included_stylesheet.xslt file in the \ibi\WebFOCUS80\config\magnify directory.
  2. Set chart.getDefaultSeries().color = undefined

WebFOCUS