ActiveReports 8
Colors
Show AllShow All
Hide AllHide All

In the ChartControl, colors can be used in different ways to enhance the chart's appearance, distinguish different series, point out or draw attention to data information such as averages, and more.

Color Palettes

The ChartControl includes several pre-defined color palettes that can be used to automatically set the colors for data values in a series. The pre-defined palettes are as follows.

These enumerated values are accessed through the Series class with code like the following.

To write code in Visual Basic.NET

To write code in C#

Gradients

Gradients can be used in object backdrops to enhance the visual appearance of various chart items. Gradients can be used in the following chart sections:

You can set gradients for a backdrop at run time by creating a BackdropItem, setting its Style property to Gradient, setting the GradientType, and setting the two colors to use for the gradient as shown in the following example.

To write code in Visual Basic.NET

To write code in C#

See Also
Support Forum