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

Scrollbars in RadChart

1 Answer 110 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 28 Feb 2013, 02:49 PM
Hi there,

 I'm having trouble with enabling Scrollbars for Radcharts for Silverlight.
My Telerik.Windows.Controls.Charting verson is 2011.3.1116.1040

In xaml, i have  :
<telerik:RadChart x:Name="radChartSurv" Style="{StaticResource chartStyle}" Tag="LiquidRateVsIPRPressureCurve" BorderThickness="1" Grid.Column="3" Grid.Row="1"/>


And in xaml.cs Codebehind :
radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsX.MinZoomRange = 0.1;
radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsX.RangeEnd = 1.0;
radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsX.RangeStart = 0.0;
radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.ScrollAndZoom;
radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsY.MinZoomRange = 0.1;
radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsY.RangeEnd = 1.0;
radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsY.RangeStart = 0.0;
radChartSurv.DefaultView.ChartArea.ZoomScrollSettingsY.ScrollMode = ScrollMode.ScrollAndZoom;

I even tried ScrollMode.ScrollOnly... but all failed... Please let me know the solution... I can not scroll, when i zoom into my chart.

Thank You,

Sunil

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 05 Mar 2013, 12:29 PM
Hi Sunil,

I created a test project, based on your code, using the version of the binaries you are indicating (2011.3.1116.1040), however I could not reproduce the problem. When dragging the slider handles the RadChart successfully zooms in and out and when the dragging the whole slider, the visible area is scrolled. I have attached my test project for reference.

Additionally, you may be interested to review our newest charting component - RadCartesianChart (part of RadChartView). The RadChartView addresses some of the limitations and deficiencies that we have identified in the RadChart implementation over the years. It is easier to set up and customize, and has vastly improved performance, especially when zooming and scrolling.
You can check the online (Silverlight) demos on this link.

Kind regards,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Sunil
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or