Problem with XAxis steps and labels

1 Answer 17 Views
Chart (HTML5)
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
Fit2Page asked on 22 Oct 2025, 12:55 PM

I cannot seem toe get my XAxis right with the following code, I simply want to display whole hours on the X-axis and values coming from a dataset like so

 

0 2025-10-22 00:31:16.000
0 2025-10-22 00:31:46.000
0 2025-10-22 00:32:16.000
0 2025-10-22 00:32:46.000
0 2025-10-22 00:33:16.000
18 2025-10-22 00:33:46.000
1591 2025-10-22 00:34:16.000
1584 2025-10-22 00:34:46.000
1585 2025-10-22 00:35:16.000
1589 2025-10-22 00:35:46.000
1585 2025-10-22 00:36:16.000
0 2025-10-22 00:36:46.000
0 2025-10-22 00:37:16.000
0 2025-10-22 00:37:46.000
0 2025-10-22 00:38:16.000
0 2025-10-22 00:38:46.000
0 2025-10-22 00:39:16.000
0 2025-10-22 00:39:46.000
0 2025-10-22 00:40:16.000
0 2025-10-22 00:40:46.000

 

.

 

 <XAxis DataLabelsField="datum" Type="Category" Name="category" AxisCrossingValue="0" Color="black" BaseUnit="Hours" BaseUnitStep="1">
    <LabelsAppearance Visible="true" RotationAngle="45">
     </LabelsAppearance>

This produces the XAxis as shown in the attached screenshot.

What is the way to go?

 

 

1 Answer, 1 is accepted

Sort by
0
Vasko
Telerik team
answered on 27 Oct 2025, 08:09 AM

Hello Marc,

Thank you for sharing the screenshot, unfortunately, I was not able to reproduce the issue with the given info. Please share a runnable sample code (file) bound to dummy data, so I can take a closer look at it and find a potential fix for the issue.

    Regards,
    Vasko
    Progress Telerik

    Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
    Tags
    Chart (HTML5)
    Asked by
    Fit2Page
    Top achievements
    Rank 2
    Bronze
    Iron
    Iron
    Answers by
    Vasko
    Telerik team
    Share this question
    or