Enables or disables the display of color gradients in a chart.
Reminder: By default, the colors displayed in a chart are gradient colors.
// Chart created through programming
grCreate("MyChart", grCandleStick)
...
// Disables the color gradients
grGradient("MyChart", False)
// Chart control
// Disables the color gradients
grGradient(CHART_MyChart, False)
Syntax
grGradient(<Chart name> , <Gradient>)
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:- the chart name defined through programming with grCreate.
- the name of the Chart control in the window, page or report editor.
<Gradient>: Boolean
- True to display the chart by using the color gradients,
- False otherwise.
Remarks
- The charts display the color gradients by default. The color gradients can be displayed by all the types of charts.
- The settings defined with grGradient will be taken into account next time grDraw is called.
- During the print, the gradient mode will not be taken into account for the Pie charts.