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

Right timezone on A-axis #5520

Closed
tenznhok opened this issue May 25, 2018 · 1 comment
Closed

Right timezone on A-axis #5520

tenznhok opened this issue May 25, 2018 · 1 comment

Comments

@tenznhok
Copy link

Is there a way to have the x-axis display the right timezone format instead of the local timezone?

I have my xAxes as below

xlabel = [1527220800000, 1527220824000, 1527220852000, 1527220884000, 1527220912000, 1527220940000, 1527220973000, 1527221001000, 1527221033000, 1527221065000, 1527221093000, 1527221125000, 1527221153000, 1527221185000, 1527221205000, 1527221241000, 1527221273000, 1527221305000, 1527221333000, 1527221366000, 1527221394000, 1527221426000, 1527221450000, 1527221486000, 1527221514000, 1527221546000, 1527221574000, 1527221606000, 1527221634000, 1527221666000, 1527221694000]

and my unitstep is at every 1hour
xAxes: [{ type: "time", time: { unit: 'second', unitStepSize:3600, tooltipFormat: "MMM D, h:mm:ss a", displayFormats: { second: 'MMM D, h:mm:ss a' } }, ticks: { fontSize: 15, bounds: 'data' } }],

my x-Axis and the tooltip keeps showing the time in my local time. I dont know how can I make it changes base on the timeformat like the moment.tz such as

  moment.tz((time, 'America\New_York').format('Do YYYY, h:mm:ss a')
@simonbrunel
Copy link
Member

It's not currently possible, see #5186.

Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants