Problem with XAxis steps and labels

0 Answers 3 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?

 

 

No answers yet. Maybe you can help?

Tags
Chart (HTML5)
Asked by
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
Share this question
or