This is a migrated thread and some comments may be shown as answers.

Strange y-axis behaviour with very small numbers

4 Answers 57 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Maria
Top achievements
Rank 1
Maria asked on 19 Apr 2011, 07:37 PM
Hello,

I'm using a scatter series to display a data set on a chart, and I'm running into a strange behaviour with the y-axis when the values are very small.

Down to about 2e-6, the graph works as expected. However, with values of 1e-7 and smaller, all of a sudden the y-axis only displays labels halfway up the axis, all of them "0", and the points are mapped above the end of the y-axis labels (although the data points still have the correct values). The values being mapped to YValue are doubles, which I thought can handle numbers this small. Is this a limitation of the chart? Should I be using a different data type for the YValue to map values this small?

Thank you.

Maria

4 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 21 Apr 2011, 01:40 PM
Hello Maria,

Unfortunately this is a known limitation - at present, you cannot specify values smaller than 1e-7 for the Y axis. Please, excuse us for the inconvenience caused.

All the best,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Maria
Top achievements
Rank 1
answered on 21 Apr 2011, 01:53 PM
Thank you for clarifying.

Can this please be clearly documented somewhere? I wasted nearly a day searching for solutions and trying to get this to work, because it seemed like such simple functionality that my thinking was that there must be something wrong with my code.
0
Maria
Top achievements
Rank 1
answered on 21 Apr 2011, 07:39 PM
Also - any chance there's a known workaround with formatting axis labels, so I could accomplish what I'm trying to do? The graph itself seems to work fine, with the data points displayed correctly relative to each other - it's just that the labels on the y-axis are not cooperating.

Any suggestions are very welcome. Thanks.
0
Nikolay
Telerik team
answered on 26 Apr 2011, 08:29 AM
Hello Maria,

A possible work-around could be setting custom strings as Y axis labels. This could be achieved through the RadChart.DefaultView.ChartArea.AxisX.TickPoints collection in the following manner :
this.RadChart1.DefaultView.ChartArea.AxisY.TickPoints[0].Label = "Custom text";

Hope this would help in your scenario.Perhaps this help topic would also be useful.

Greetings,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Maria
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Maria
Top achievements
Rank 1
Share this question
or