Secondary axis max value show as incompleted(Cut)

2 posts, 0 answers
  1. Kiran Ghanwat
    Kiran Ghanwat avatar
    38 posts
    Member since:
    Nov 2009

    Posted 15 Nov 2010 Link to this post

    Hello,
     I hve line chart having 2 y axis. I am able to draw 2 y axis but on secondary axis value on top gets as cut.

    I am creating dataseries like(In short Code)

     

     

    DataSeries dsLineSeries = new DataSeries();

     

     

     

    foreach (ChartData itemRatio in items)

     

    {

     

     

    DataPoint dp = new DataPoint();

     

    dp.YValue = itemRatio.YValue;

    dsLineSeries.Add(dp);

    }

     

     

     

    if (radChart.DefaultView.ChartArea.AdditionalYAxes.Count > 0)

     

    radChart.DefaultView.ChartArea.AdditionalYAxes.Clear();

     

     

    if (chartData.Count == 2)

     

    {

     

     

    AxisY secondaryAxis = new AxisY();

     

    radChart.DefaultView.ChartArea.AdditionalYAxes.Add(secondaryAxis);

    radChart.DefaultView.ChartArea.AdditionalYAxes[0].AxisName =

     

    "Secondary";

     

    }



    radChart.DefaultView.ChartArea.DataSeries.Add(dsLineSeries);



     I am attaching image .
    On primary Y axis all values are showing properly.
    Please give solution why its showing on that axis only.

  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 18 Nov 2010 Link to this post

    Hello Kiran,

    I reviewed the code, and it looks correct.
    Based on the supplied information, it is hard to determine the cause of the issue.
    If the problem persists, you can open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and advise you further.

    Best wishes,
    Yavor
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top