SfChart contains predefined set of brushes that are assigned to each data point or each chart series by default. You can also provide your own set of brushes to chart series or data points.
This can be achieved for data points by assigning a collection of brushes to Series.ColorModel.CustomBrushes property and for the custom brushes to take effect, set Series.ColorModel.Palette to “Custom”. The following code example and screenshot illustrate the custom brushes applied for individual data points.
Figure 1: Custom brushes applied for individual datapoints
In order to set custom brushes for series, set it in chart color model as illustrated in the following code example.
The following screenshot illustrates the custom brushes applied for individual series.
Figure 2: Custom brushes applied for individual series
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|