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

[Solved] radChart braks after upgrading to new version (q2 release)

2 Answers 100 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bonas Khanal
Top achievements
Rank 1
Bonas Khanal asked on 29 Jul 2009, 05:13 PM
the chart was working fine on q1. I saw the release notes and it talks about Axis.DefaultFormat , SeriesDefinition.DefaultFormat and SeriesDefinition.ToolTipFormat.
Fixed those.. Here are the issues I have after I fixed those (if I had referenced them).
I have a stack bar chart.
1. RadChart1.DefaultView.ChartArea.AxisX.TickPoints doesn't make correct number of tickpoints. Before I had a dataseries with 10 items.. it had 10 tickpoints, now it is just random..
2. Tickpoint.Label doesn't work. I tried LegendLabel it didn't help either.
3. If i have only one item in the chart..it show really small in the chart...


Thank you
Bonas...

2 Answers, 1 is accepted

Sort by
0
Bonas Khanal
Top achievements
Rank 1
answered on 29 Jul 2009, 06:23 PM
I think RadChart1.DefaultView.ChartArea.DataSeries.Clear();
is not clearing up the tick point details.

I tried RadChart1.DefaultView.ChartArea.AxisX.TickPoints.Clear();
This doesn't work either.

I have a radchart, which I customize for different conditions... on drilling down the grid.
0
Vladimir Milev
Telerik team
answered on 03 Aug 2009, 11:41 AM
Hello Bonas Khanal,

There are several changes that we introduced with Q2. First of all, TickPoints are not entirely decoupled from the data series. The tickpoints of the XAxis are maintained by the axis, and are entirely dependent on the axis range (minvalue, maxvalue, step). The axis can attempt to automatically determine the range using heuristics and analyzing the data series (default behavior) or you can manually set the range using AxisX.AutoRange = false and setting the min, max and step manually. When you set the range manually the tick points will only be created once. If you are using AutoRange=true then the chart will try to accommodate different number of labels on the XAxis according to the physical width available. This behavior will dynamically recreate tickpoints while resizing.

Last but not least, you may want to consider using our new axis feature - categories.  It is a convenient way to let RadChart manage your XAxis labels automatically.

Hope this helps.

Kind regards,
Vladimir Milev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart
Asked by
Bonas Khanal
Top achievements
Rank 1
Answers by
Bonas Khanal
Top achievements
Rank 1
Vladimir Milev
Telerik team
Share this question
or