Chart / Charts / Chart Themes
In This Topic
    Chart Themes
    In This Topic

    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:

    Chart themes can be applied to chart data points or to chart series.

     Themes for Data Points

    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:

     Themes for Series

    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: