Profile Picture

Problem with large numbers: getting black box instead of chart

Posted By Mike Arkhipov 14 Years Ago

Problem with large numbers: getting black box instead of chart

Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Mike,

You're correct that the axis calculation is performed with decimal numbers. This is intentional as decimals do not create rounding problems when adding a decimal step base several times to the axis origin during tick value calculation. We will workaround this by using double precision when the range is that big, however this may cause rounding problems (will keep you posted). As for the .Infinity values - they currently mark the series range as invalid and therefore the chart does not display - we'll add a mode in the series that enables the control to treat Infinity values as empty (BTW this is already implemented and will be present in the next SP).



Best Regards,
Nevron Support Team



Mike Arkhipov
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 7, Visits: 1
2D scatter plot.

In our data set, there is one point with -3.4E38 Y value. This causes the System.OverflowException somewhere inside Nevron (I have set VS to break at that exception) and the black box is rendered instead of chart!

It seems that Nevron converts all numbers to Decimal data type. This means that Nevron can handle only numbers in range from approximately 10E-28 to 10E28. But the "double" numbers range is much wider. Sometimes plotting numbers makes sense in log scale for example.

Next observation is that infinite numbers seem to be handled by Nevron because it doesn't cause that exception, but in this case the chart is not rendered.

Is there any workaround for this? Or maybe there is some way to force it to use double representation rather than decimal?


Mike Arkhipov




Similar Topics


Reading This Topic