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

RadChartView auto vertical scale for visible part of chart only

1 Answer 195 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 02 Dec 2016, 05:55 PM
Hi, I try use RadChartView to display finance data with Candle-style series. After setup data, I set horizontal zoom, but vertical zoom remains unchanged (see screenshot). How to make radchartview auto-Y-scale  for visible part of chart?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 06 Dec 2016, 08:54 AM
Hi Sergey,

The chart doesn't automatically change its zoom in order to fit the plotted data. In order to achieve this you can set up the chart's zoom manually via the the following properties:
  • HorizontalZoomRangeStart
  • HorizontalZoomRangeEnd
  • VerticalZoomRangeStart
  • VerticalZoomRangeEnd
The properties work in relative units between 0 and 1.

By default the chart pan and zoom behavior enables only zooming interactions on the horizontal axis. To enable them also for the vertical axis you can set the ZoomMode property of the behavior to Both. You can read more about the pan and zoom behavior in the chart's documentation.

Regards,
Martin
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Tags
ChartView
Asked by
Sergey
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or