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

DateTimeCategoricalAxis

3 Answers 154 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Majid
Top achievements
Rank 1
Majid asked on 11 Jan 2014, 07:02 PM

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?

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 15 Jan 2014, 11:33 AM
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 >>
0
Majid
Top achievements
Rank 1
answered on 18 Jan 2014, 08:29 AM
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?
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 22 Jan 2014, 02:06 PM
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 >>
Tags
ChartView
Asked by
Majid
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Majid
Top achievements
Rank 1
Share this question
or