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

Chart does not show zero on X-Axis

5 Answers 49 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 27 Feb 2012, 03:41 PM
Hello,

I use the radchart and I have a dataseries starting with 0.00.

The problem is that the axis does not start with 0.00 but with 8.67...e-18. A very odd value thats not in my dataseries. And that looks kind of stange.
I tried to avoid this by setting the AxisX.MinValue to 0.00 but that did not have any effect on the display.

Can you give me a hint on this?

Thanks,

Martin

5 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 01 Mar 2012, 11:59 AM
Hello,

Could you elaborate a bit more on this since we haven't faced such unwanted behavior with our axis before? Is this the automatic min value of the axis or you tried to set it manually?

Greetings,
Evgenia
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Martin
Top achievements
Rank 1
answered on 05 Mar 2012, 11:29 AM
Hi Evgenia,

this issue appears with the automatic min/max settings. If I switch off the automatic setting I can set manually my min/max values and thats working perfectly.

But it would be nice to have this set automatically.

Greetings,
Martin
0
Evgenia
Telerik team
answered on 08 Mar 2012, 10:29 AM
Hello,

The way YAxis automatic range works is that it searches for the min and max value in your data and makes an approximation of each of them. Since you have a very small number - the YAxis rounds it to the closest integer number - in this case 0.
I hope this sheds light on the way automatic range works and why it's better to set the range automatically in your case.

Greetings,
Evgenia
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Martin
Top achievements
Rank 1
answered on 08 Mar 2012, 10:40 AM
Hello,

the automatic range gives me the  8.67...e-18 on the x-Asis. So it does not round to the closest integer number.

Best regards,
Martin
0
Peshito
Telerik team
answered on 12 Mar 2012, 01:38 PM
Hi,

As we haven't faced such unwanted behavior, could you please send us a small runnable project isolating the problem, so we could provide you with an appropriate solution.

Thank you in advance.

Kind regards,
Peshito
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Chart
Asked by
Martin
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Martin
Top achievements
Rank 1
Peshito
Telerik team
Share this question
or