I have a line series displayed on a chart with the y axis set to display percentages.The y axis and the data appears correctly.
However the labels display the percentage values wrongly e.g. 3 is plotted correctly as 300 % but the label says 33.33%.
Any way of getting the data labels to display correctly would be much appreciated.
Thanks
Lucy
NCartesianChart barChart = new NCartesianChart();
barChart.Margins = new NMarginsL(10, 0, 0, 10);
barChart.Dock = winforms.DockStyle.Fill;
barChart.BoundsMode = BoundsMode.Stretch;
_chartControl.Charts.Add(barChart);
_currentChart = barChart;
NStandardScaleConfigurator yScale = (NStandardScaleConfigurator)barChart.Axis(StandardAxis.PrimaryY).ScaleConfigurator;
yScale.LabelValueFormatter = new NNumericValueFormatter(NumericValueFormat.Percentage);
NLineSeries lineSeries = (NLineSeries)barChart.Series.Add(SeriesType.Line);
lineSeries.DataLabelStyle.Format = "<percent>";
lineSeries.Values.Add(3);
lineSeries.Values.Add(4);
lineSeries.Values.Add(2);
barChart.Refresh();
_chartControl.Refresh();