Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazorise Charts Time Chart - Timezone Definition #5240

Open
InzeNL opened this issue Jan 17, 2024 · 1 comment
Open

Blazorise Charts Time Chart - Timezone Definition #5240

InzeNL opened this issue Jan 17, 2024 · 1 comment
Labels
Type: Feature ⚙ Request or idea for a new feature.

Comments

@InzeNL
Copy link
Contributor

InzeNL commented Jan 17, 2024

Is your feature request related to a problem? Please describe.
On my website, people can configure their timezone, and this may differ from the timezone on their PC. The time chart currently localizes to the PC-time. According to this Stack Overflow topic it is possible to define the localization using the Parser parameter. However, in Blazorise, the Parser parameter is a string, not a method.

Describe the solution you'd like
A way to implement the parser parameter as a function would probably be too complicated for what I really need: Enter a timezone to localize to. For that reason, I've described the following solution.

Add a parameter, that is off-spec to the chart.js Time Cartesian Axis, that allows us to define a timezone to localize the chart to

@InzeNL InzeNL added the Type: Feature ⚙ Request or idea for a new feature. label Jan 17, 2024
@stsrki
Copy link
Collaborator

stsrki commented Jan 17, 2024

This should be part of the higher work refactor. We do have some parameters that accept functions, but they are being done in just a few places due to the limitations of converting from C# to JS. There is a work going on #5146 that might help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature ⚙ Request or idea for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants