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

Segmenting a RadCartesianChart

1 Answer 98 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 28 Sep 2020, 07:17 PM

Hi,

I'm wondering if there is a way to segment a RadCartesianChart based on specific units of time (minutes, hours, days, months, years).

For example, lets say I select the count of product orders for every month over a 4 year timespan (2012-2015). With that selection, I will have 48 points of data displayed on my line chart. As a user, I would like to view how our order numbers compare on a year-by-year basis, while still seeing the order counts for the specific months. I select an option that specifies Segment = Year. My resulting chart should look like the attached image.

Is something like this possible with RadCartesianChart?

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 30 Sep 2020, 08:00 AM

Hello Kyle,

RadCartesianChart doesn't support the described grouping (segmenting) feature. However, you can achieve this by placing few charts one next to another. Only the first chart will have the vertical axis shown and the others will be hidden. You can sync the axis ranges with the Minimum and Maximum axis properties. The gray background and the black line can be shown with a plot band and line annotations.

I hope this information helps.

Regards,
Martin Ivanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
ChartView
Asked by
Kyle
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or