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

Chart AxisY label problem

1 Answer 83 Views
Chart
This is a migrated thread and some comments may be shown as answers.
devster
Top achievements
Rank 1
devster asked on 26 Nov 2009, 11:37 PM
I have a question about chart.
When we link our list to the chart and we configure the Yaxis, with :
VermogenChart.DefaultView.ChartArea.AxisY.AutoRange = false
                VermogenChart.DefaultView.ChartArea.AxisY.MinorTicksVisibility = Visibility.Collapsed; 
                VermogenChart.DefaultView.ChartArea.AxisY.MinValue = 0; 
                var step = 400 / 5; 
                VermogenChart.DefaultView.ChartArea.AxisY.Step = step; 
                VermogenChart.DefaultView.ChartArea.AxisY.ExtendDirection = AxisExtendDirection.None; 
                VermogenChart.DefaultView.ChartArea.AxisY.MaxValue = 400; 

we always get result like picture1 the first time we load the chart, and a little later when we load it again , we get picture2 like it is supposed to be. How can we solve this?

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 01 Dec 2009, 09:41 AM
Hi dev,

Instead of setting MinValue, MaxValue and Step, please, refer to the AddRange method.

Sincerely yours,
Evtim
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
devster
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or