Nevron Forum

Chart shows a value 0f -5.5E20 where it should show 0

https://www.nevron.com/Forum/Topic3322.aspx

By Willie-Jan Bons - Wednesday, March 31, 2010

Hi,

I am using the nevron chart to display data.

The attachment shows what it does. How can i force the chart to show 0 in stead of the value towards 0?

The data contains values such as 0.0008,  0.00001, 0.0023  -0.0008

By Blagovest Milanov 1 - Friday, April 16, 2010

Hi Willie,

You can workaround that by applying a value formatter with fixed precision:

NStandardScaleConfigurator scale = chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator as NStandardScaleConfigurator;
scale.LabelValueFormatter =
new NNumericValueFormatter("0.000");

Also newer versions of the component do not have this problem (they use decimal precision for the step calculation).

Let me know if you have any questions...

Best regards,
Bob