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

Secondary axis max value show as incompleted(Cut)

1 Answer 39 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kiran Ghanwat
Top achievements
Rank 1
Kiran Ghanwat asked on 15 Nov 2010, 02:52 PM
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.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 18 Nov 2010, 08:24 AM
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
Tags
Chart
Asked by
Kiran Ghanwat
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or