Applies to: Nevron Chart for .NET

How to change the font of a chart’s legend?

To change the font of the Chart legend you can use the built-in Chart Editor.

To change the font from code you can take a look at the following example:

NBarSeries bar = (NBarSeries)chart.Series.Add(SeriesType.Bar);
bar.Legend.TextStyle = new NTextStyle(new Font("Arial", 10));

Dim bar As NBarSeries = DirectCast(chart.Series.Add(SeriesType.Bar), NBarSeries)
bar.Legend.TextStyle = New NTextStyle(New Font("Arial", 10))

Article ID: 65, Created On: 10/6/2010, Modified: 11/15/2010