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

Q3 upgrade breaks X axis label, show item labels and tooltip code

1 Answer 49 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Russell Smith
Top achievements
Rank 1
Russell Smith asked on 17 Feb 2010, 04:32 PM
Hi, 

The following code runs without any issues with the Q2 release but generates errors with the Q3 release:

            RadChart1.ItemsSource = graphList

            For y = 0 To xNames.Count - 1
                    RadChart1.DefaultView.ChartArea.AxisX.TickPoints(y).Label = xNames(y)
            Next y
            For y = 0 To graphList.Count - 1
                    RadChart1.DefaultView.ChartArea.DataSeries(y).Definition.ShowItemLabels = False
                    RadChart1.DefaultView.ChartArea.DataSeries(y).Definition.ShowItemToolTips = True
            Next y

xNames array holds the X axis labels.

After 'RadChart1.ItemsSource = graphList' runs with Q2 'VRadChart1.DefaultView.ChartArea.AxisX.TickPoint' has a collection of TickPoints.  With Q3 there is no collection.  The same is true for 'RadChart1.DefaultView.ChartArea.DataSeries'.  If I omit the code below 'VRadChart1.ItemsSource = graphList' with Q3 the chart shows as expected but obviously without the required axis labels etc.

Any ideas about why the above code does not function with Q3?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 22 Feb 2010, 07:53 AM
Hello Russell,

There are some changes we made to increase performance. Since this.RadChart1.DefaultView.ChartArea.AxisX.TickPoints is an observable collection, you can use the CollectionChanged event and update the values.


Sincerely yours,
Joshua
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Russell Smith
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or