Chart Multi Series multi date ranges

1 Answer 113 Views
Charts
Nathaniel
Top achievements
Rank 1
Nathaniel asked on 06 Oct 2022, 01:42 PM

Hello. 

I am wondering if it is possible to have two series on a chart that are of different time frames.

For example, I have two data sets.

1. Has 365 data points (1 for each day)

2. Has 12 data points (1 for each month)

They are both over the same year

When I plot the chart, series 2 only aligns with the first 12 points on series 1. So it looks like 12 days instead of 12 months. 

NOTE:  I am able to use multiple ValueAxisItems to scale the Y values correctly for each, but the x axis does not scale correctly,

Hope this makes sense, Below is a visual representation. 

 

Expected

 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

|                                            |                             |                               |                                     |                    |

 

Actual

 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

| | | | |

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 07 Oct 2022, 04:23 PM

Hello, Nathaniel,

The chart does not support multiple differently spread categorical axis at the moment, so the only way to achieve the desired result would be to have to different charts. For example, you can have a similar implementation:

https://stackblitz.com/edit/react-eqmydz?file=app%2Fmain.jsx

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Charts
Asked by
Nathaniel
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or