Radchart Silverlight AxisY values not showing clearly.

4 posts, 0 answers
  1. jagan
    jagan avatar
    6 posts
    Member since:
    Nov 2010

    Posted 27 Mar 2013 Link to this post

    Hi Team,

    I am having a problem in showing data in radchart silverlight. The y value points are not shown in Radchart after binding. Please see attached file. If the y values are low then it is not showing properly in radchart. And also I would like to know whether radchart silverlight will work in mobile devices. Please reply.
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 01 Apr 2013 Link to this post

    Hi Jagan,

    Thanks for contacting us.

    The reason why the values you pointed out aren't displayed is because they are too small compared to the greatest of these which is upwards of 10 million. If you look at the chart's vertical axis, you will see that the difference between two minor ticks is approximately 200 000. Therefore, the chart will calculate the height of a value as small as 30 694 - or even smaller - to be less than a pixel. Hence, the bar won't be rendered. For situations like this one, you can use a logarithmic axis. RadChart's documentation and its online demos both offer a section on this feature here and here respectively.

    All the best,
    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. jagan
    jagan avatar
    6 posts
    Member since:
    Nov 2010

    Posted 01 Apr 2013 Link to this post

    Hi,
    After giving the line   radChart.DefaultView.ChartArea.AxisY.IsLogarithmic = true; Im getting the yaxis value in reversed form. But I want to show the value as normal like other values. That is I want to show the values of yaxis from 0. Please see attached file.
  5. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 04 Apr 2013 Link to this post

    Hi Jagan,

    The result you are observing is actually correct because logarithm of number between 1 and 0 is negative (log(0) is undefined). The logarithmic axis is usually helpful when the values displayed are disparate like in your scenario, however fractional values like 0.62 look strange.

    Another thing you can try is multiple Y axes (not logarithmic). One of the axis can be used to display the large values (e.g millions) and the other can be used for small values (such as 0.62). You can find an example of that here.

    I hope this helps.
     
    Regards,
    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top