Chart Feature : option to use DateTime as axis without hours #443

Closed
opened 2026-01-29 17:37:22 +00:00 by claunia · 3 comments
Owner

Originally created by @SenuinLentar on GitHub (Jun 21, 2022).

Hello,
I found out that the chart points are strangelly aligned with the grid when using DateTime as axis.
After further research, it appears that, when no hours components are given, the point is positionned at 00:00.
This behaviour is a bit confusing when I use only dates (without hours).

I understand that this behaviour is correct when using hours, but would it be possible to create an option to use Date only and fix the point on the grid ?

image

Here is a repo to a test project (don't mind the name, I reused it) :
https://github.com/SenuinLentar/RadzenTooltipProblem.git

In this repo, I used some Date with 23:59 and 12:00 to show the offset to Dates without hours.

I hope I was clear with my explanations, feel free to ask further questions if I'm not.

[Windows, Chrome]

Originally created by @SenuinLentar on GitHub (Jun 21, 2022). Hello, I found out that the chart points are strangelly aligned with the grid when using DateTime as axis. After further research, it appears that, when no hours components are given, the point is positionned at 00:00. This behaviour is a bit confusing when I use only dates (without hours). I understand that this behaviour is correct when using hours, but would it be possible to create an option to use Date only and fix the point on the grid ? ![image](https://user-images.githubusercontent.com/23256428/174828623-622a627a-1b04-4b71-8b83-39f8574335cc.png) Here is a repo to a test project (don't mind the name, I reused it) : https://github.com/SenuinLentar/RadzenTooltipProblem.git In this repo, I used some Date with 23:59 and 12:00 to show the offset to Dates without hours. I hope I was clear with my explanations, feel free to ask further questions if I'm not. [Windows, Chrome]
Author
Owner

@akorchev commented on GitHub (Jun 21, 2022):

I would recommend to use strings instead of dates in this case. Check our online demo for an example.

@akorchev commented on GitHub (Jun 21, 2022): I would recommend to use strings instead of dates in this case. Check our online demo for an example.
Author
Owner

@akorchev commented on GitHub (Jun 21, 2022):

Also check #490

@akorchev commented on GitHub (Jun 21, 2022): Also check #490
Author
Owner

@SenuinLentar commented on GitHub (Jun 21, 2022):

Thank you, I'll check these.

@SenuinLentar commented on GitHub (Jun 21, 2022): Thank you, I'll check these.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#443