When you enable scrolling / zooming a few issues appears....
1) When setting RotationAngle = 20 for example with the line:
1) When setting RotationAngle = 20 for example with the line:
RadChart.XAxis.Appearance..LabelAppearance.RotationAngle = 20
the labels on the XAxis dissapears from the chart. It works fine when you have
ChartClientScrollMode set to None
2) When setting ChartClientScrollMode to XOnly the YAxis labeling is
missplaced.
It gets positioned at the same height as before but know the scrollbar is
there and you can't see the lines (or whatever you have) that should be at
the bottom because they are behind the scrollbar
This is working when you are using ChartClientScrollMode.Both
RadChart.ClientSettings.ScrollMode = ChartClientScrollMode.XOnly
/Thanks in advance
Davy Wester
6 Answers, 1 is accepted
0
Hi Davy,
Onto your questions:
Hope this helps.
Regards,
Ves
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Onto your questions:
- Looks like a bug in the control. I have forwarded it to our developers. Your Telerik points have been updated.
- If you need to keep XOnly scrolling you can "extend" Y axis with additional step in the beginning. You can do this in BeforeLayout event handler. Here is an example:
protected void RadChart1_BeforeLayout(object sender, EventArgs e) |
{ |
double min = RadChart1.PlotArea.YAxis.MinValue; |
double max = RadChart1.PlotArea.YAxis.MaxValue; |
double step = RadChart1.PlotArea.YAxis.Step; |
RadChart1.PlotArea.YAxis.Clear(); |
RadChart1.PlotArea.YAxis.AddRange(min - step, max, step); |
} |
Hope this helps.
Regards,
Ves
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Chris Shi
Top achievements
Rank 1
answered on 04 Aug 2008, 06:06 PM
I understand there is a bug in the Chart control with scrolling and missing x-axis label. I'm working on a project that requires scrolling and xaxis rotation. I'm wondering whether there is a workaround and when the bug will be fixed. Thanks.
0
Chris Shi
Top achievements
Rank 1
answered on 04 Aug 2008, 06:15 PM
Hi, I tried your BeforeLayout event handler code. It does shift the y-axis up above the scroll bar, however the series is not shifted up, so the bottom portion of the lines are still covered up the scroll bar.
0
Hi Chris, Davy,
Indeed, this code does not provide complete solution. You will have to define the min and max values manually, set AutoScale property and use AddRange at earlier stage of the page lifecycle. I am sorry for the misleading information provided.
As for the rotated X axis item labels -- this has already been fixed. Do you still observe it using the latest RadChart?
Greetings,
Ves
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Indeed, this code does not provide complete solution. You will have to define the min and max values manually, set AutoScale property and use AddRange at earlier stage of the page lifecycle. I am sorry for the misleading information provided.
As for the rotated X axis item labels -- this has already been fixed. Do you still observe it using the latest RadChart?
Greetings,
Ves
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris Shi
Top achievements
Rank 1
answered on 05 Aug 2008, 04:18 PM
Thank you for your reply. I didn't mean to sound needy but i'm kinda new to RadChart. Would you please post a simiple example with the complete solution? Thanks alot!
Chris
Chris
0
Hello Chris,
Please, find attached the requested sample. Hope this helps.
All the best,
Ves
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please, find attached the requested sample. Hope this helps.
All the best,
Ves
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.