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

inverse axis with scroll

3 Answers 51 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Anatoly Chekh
Top achievements
Rank 1
Anatoly Chekh asked on 10 Aug 2011, 02:47 PM
Hello!

I have a question.
We use horizontal bar chart. Set XAxis as inverse (AxisX.IsInverse = true)
Use scroll mode for the X Axis:
But when I scrolling - scroll size is changed.

More details:

I have 12 points.
Properties are:

radChart.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.ScrollOnly;
radChart.DefaultView.ChartArea.ZoomScrollSettingsX.MinZoomRange = 3 / 12 = 0.25
radChart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeStart = 1 - 0.25 = 0.75
radChart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeEnd = 1
radChart.DefaultView.ChartArea.ZoomScrollSettingsX.SliderSelectionStart = radChart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeStart;
radChart.DefaultView.ChartArea.ZoomScrollSettingsX.SliderSelectionEnd = radChart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeEnd;

First look is correct. But when I scrooling - zoom range is changed and I see 9 items instead of 3.
Is this a bug or what I doing wrang?

Thanks, Anatoly Chekh.

3 Answers, 1 is accepted

Sort by
0
Anatoly Chekh
Top achievements
Rank 1
answered on 10 Aug 2011, 06:29 PM
I found solution. I wrong set ranges.

Right way is simple:

radChart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeStart = 0
radChart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeEnd = 0.25
0
Evgenia
Telerik team
answered on 15 Aug 2011, 07:24 AM
Hi Anatoly,

Should we consider that the issue you were facing is now resolved?
Let us know if further questions arise.

Best wishes,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Anatoly Chekh
Top achievements
Rank 1
answered on 15 Aug 2011, 08:25 AM
Yes. The problem is resolved.
Tags
Chart
Asked by
Anatoly Chekh
Top achievements
Rank 1
Answers by
Anatoly Chekh
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or