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

How can I make a DateTime X-Axis match my Zoom level

1 Answer 53 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Louis
Top achievements
Rank 1
Louis asked on 28 Apr 2014, 10:27 PM
HI!  I have a chart with two thousand Candlesticks.  The only time the DateTimeCategoricalAxis shows readable values is when I'm zoomed all of the way in.  Is there any way to show a sampling of approximate values values as I zoom out?

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 29 Apr 2014, 07:24 AM
Hello Louis,

We do not have an adaptive-sampling feature yet. Perhaps you can use the ChartDataSource to turn sampling on. Then in the ZoomChanged event of the chart you can set the SamplingThreshold (in accordance with the zoom level) to some number that will ensure that you have 50 (for example) visible candlesticks. Give it a try and let us know how it goes.

Regards,
Petar Marchev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ChartView
Asked by
Louis
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or