Dual X axis labels in barCharts

2 Answers 77 Views
Chart ChartView
Javier
Top achievements
Rank 1
Iron
Javier asked on 03 Aug 2021, 11:38 AM | edited on 03 Aug 2021, 11:39 AM

Hello,

I'd like to have two levels of X-Axis labelling in order to have a main category and subcategories clustered. 

I found this topic  https://www.telerik.com/forums/clustered-bar-chart---dual-x-axis-labels-is-this-possible-0866e299cb79  that asks for the same feature but the last reply is very old. It´s possible to achieve this behaviour nowadays?

Thanks !

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 03 Aug 2021, 12:01 PM

Hello Javier,

Note that the referenced topic is for our old RadChart control. Anyway, the newer version (RadChartView) still doesn't support this type of grouping. However, you can achieve similar visualization with some custom code. Basically, you will need to manually draw the labels on the axis and update them on each UI update of the chart. I've attached a small example showing one way to achieve this. I hope that helps.

Regards,
Martin Ivanov
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/.

0
Javier
Top achievements
Rank 1
Iron
answered on 05 Aug 2021, 08:45 AM

Thanks Martin!

It seems that the proposed solution fits our needs.

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