NOV Chart for .NET makes it easy to customize the appearance of charts via chart themes.
Chart themes are represented by the NChartTheme class. Its constructor accepts two parameters:
- palette - specifies the chart theme color palette.
- paletteTarget - specifies whether the palette will spread colors across data points or series.
Chart themes can be applied to chart data points or to chart series.
To apply a theme on the chart data points you need to pass a palette target of DataPoints to the NChartTheme constructor:
Apply theme on chart data points |
Copy Code
|
chartView.Document.StyleSheets.ApplyTheme(new NChartTheme(ENChartPalette.Nevron,
ENChartPaletteTarget.DataPoints));
|
The effect of this theme will be the following:

Similarly to apply a theme to chart series, you need to pass a palette target of Series to the NChartTheme constructor:
Apply theme on chart series |
Copy Code
|
chartView.Document.StyleSheets.ApplyTheme(new NChartTheme(ENChartPalette.Nevron,
ENChartPaletteTarget.Series));
|
The effect of this theme will be the following:
