DateTimeCategoricalAxis

4 posts, 1 answers
  1. Majid
    Majid avatar
    6 posts
    Member since:
    Jan 2014

    Posted 11 Jan 2014 Link to this post

    I have a Cartesian chart with DateTimeCategoricalAxis.
    1- I want  a free space added at the end of the horizontal axis, and extends it beyond the maximum date which now available on the horizontal chart.

    2 Every time the chart is initialized, it previews entire data! Is there a way to show only the last 50 data points at first time initialization of chart?

     

     

     

     

     

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 15 Jan 2014 Link to this post

    Hi Majid,

    Regarding the first requirement you can try using the DateTimeCoutituesAxis. It exposes Maximum property that can be handy in your particular scenario.

    Regarding the second requirement, you can try using the HorizontalZoomRangeStart and HorizontalZoomRangeEnd properties of the RadCartesianChart control (or the VerticalZoomRangeStart and the VerticalZoomRangeEnd). These properties accept values between 0 and 1. In your particular case you can try setting them like so:

    <telerik:RadCartesianChart HorizontalZoomRangeStart="0.7" HorizontalZoomRangeEnd="1"/>
    By using this code you will force the RadCartesianChart to Zoom-In and visualize the last 30% of the chart. In other words the charting component is capable of visualizing a percent of the series (or the plot area) - rather then any count of data points.

    Please give this approach a try and let me know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Majid
    Majid avatar
    6 posts
    Member since:
    Jan 2014

    Posted 18 Jan 2014 Link to this post

    The horizontal axis contains DateTimes which are not continuous in time, actually there is gap between them, hence I'm persist using DateTimeCategoricalAxis. On the other hand, when I use DateTimeContinuousAixs the adjacent datapoints(candles) interact with each other. I have another question too, how to reach plot area element? I want to change the cursor in this area. in addition is there a similar sample code for creating location crosshair for RadChartView like this one for RadChart?
  5. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 22 Jan 2014 Link to this post

    Hello Majid,

    In order to add free space at the end of the charting area you can try adding a category that is after the last one of your business data and set the value of that category to null.

    Regarding the requirement to change the mouse pointer when users point the charting component you can set the Cursor property of the RadChartView control or of the corresponding Series.

    Please give this approach a try and let us know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top