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

2 posts, 0 answers
  1. Louis
    Louis avatar
    1 posts
    Member since:
    Mar 2013

    Posted 28 Apr 2014 Link to this post

    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?
  2. Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 29 Apr 2014 Link to this post

    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.

    Petar Marchev
    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.
Back to Top