Applies to: Nevron Chart for .NET
How to workaround scale label rounding / formatting problems in Nevron Chart?
The labels of an axis could occasionally display too many digits (such as 9.59999999999999 instead of 9.6) in a XY scatter plot.
To avoid this problem you can setup the LabelValueFormater property of axis scale configurator, so that it formats double digits with limited precision (2 in this case). For Example:
[C#]
NLinearScaleConfigurator linearScale =
new
NLinearScaleConfigurator();
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = linearScale;
linearScale.LabelValueFormatter =
new
NNumericValueFormatter(
"0.##"
);
[VB.NET]
Dim
linearScale
As
New
NLinearScaleConfigurator()
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = linearScale
linearScale.LabelValueFormatter =
New
NNumericValueFormatter(
"0.##"
)
Article ID: 70, Created On: 10/6/2010, Modified: 11/15/2010