Hi Michal,
Thanks for contacting Syncfusion Support.
We have analyzed your query and created a sample based on your requirement. To prevent the X-Axis labels overlapping please use “labelIntersectAction” property.
Following values has to be given for “labelIntersectAction” property
· “rotate90” – To rotate the axis labels in 90 degrees.
· “rotate45” – To rotate the axis labels in 45 degrees.
· “multipleRows” – If axis labels are overlapped then overlapped labels can be placed in second row.
· “hide” – To hide the overlapping axis labels.
· “trim” – To trim the overlapping axis labels and full text can be displayed by tooltip on hovering.
· “wrap” – If axis labels are overlapped then overlapped letter only placed in next row.
Please follow the code example below
[JS] $(function () { $("#container").ejChart( { primaryXAxis: { labelIntersectAction : "multipleRows" } }); }); |
And we have also made a sample for your reference and attached in the below location
And please refer the UG link to know more details about label customization.
Please find the output of the sample below
Please let us know if you have concern.
Regards,
Saravana Kumar K.