Y Axis

7 posts, 0 answers
  1. Anitha
    Anitha avatar
    33 posts
    Member since:
    Apr 2012

    Posted 20 Apr 2012 Link to this post

    Hello All,

     I am using Radchart in Silverlight. I am able to bind the data but when the value is Zero, I am not able to get the Labels on the YAxis.

    Please find the attached screen shot.

    Thanks in Advance,
  2. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 25 Apr 2012 Link to this post

    Hello,

     Have you by any reason turned off the labels visibility cause no matter of the series values, the labels will always be shown by default?

    All the best,
    Evgenia
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
  4. Anitha
    Anitha avatar
    33 posts
    Member since:
    Apr 2012

    Posted 25 Apr 2012 Link to this post

    I did not turn off the labels, this situation is causing only when all the values for that series are 0.
    If we have other than 0 it is displaying.
  5. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 27 Apr 2012 Link to this post

    Hi Anitha,

     I see now what you mean. Your chart setup uses the automatic AxisY range and when all data is zero, the AxisY does not have any range (i.e. it is zero).
    We would suggest you to manually set the AxisY range like this to have YAxis Labels visible. Feel free to customize the values of the range as you wish.

    radChart1.DefaultView.ChartArea.AxisY.AutoRange = false;
    radChart1.DefaultView.ChartArea.AxisY.AddRange(0, double.Epsilon, double.Epsilon);

    Greetings,
    Evgenia
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  6. Mohit
    Mohit avatar
    2 posts
    Member since:
    Jun 2012

    Posted 01 Jun 2012 Link to this post

    Hi,

    We are using "RadCartesianChart" in our project. Can you please suggest how can we implement something like that in RadCartesianChart control.

    Actually, I want to give my own range and labels to the Y-Axix. Any help in this regards is appreciated.

    Thanks in advance,

    Mohit
  7. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 05 Jun 2012 Link to this post

    Hello Anitha,

     From your attached image and from the Product category you provided (RadChart for Silverlight), I thought you are using our RadChart control. Please consider posting your questions regarding the correspaonding Product (control) they are for. This will make it easier for us and others that may came across the forum post.
    Onto your question - you may use the Minimum and Maximum properties (available for LinearAxis of RadChartView) to set the minimal and maximal value of the axis as shown in our documentation as well as MajorStep property for step of the axis.

    Regards,
    Evgenia
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  8. Mohit
    Mohit avatar
    2 posts
    Member since:
    Jun 2012

    Posted 06 Jun 2012 Link to this post

    Thank you.
    I got it working by calculating and setting MajorStep property based on the minimum and maximum.
Back to Top
DevCraft banner