Profile Picture

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

Posted By Willie-Jan Bons 14 Years Ago
Author
Message
Willie-Jan Bons
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 6, Visits: 1

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



Attachments
ClientGrafik.JPG (44 views, 130.00 KB)
bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

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





Similar Topics


Reading This Topic