question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set the time zone of the X axis

See original GitHub issue

https://jsfiddle.net/TradingView/bmL0vont/

image

How can I set the time zone of the X axis? My local is the +8 time zone, but it shows the time in the 0 time zone.

time: 1556877600 Should show 2019/05/03 18:00:00

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
timocovcommented, Sep 24, 2019

How can I set the time zone of the X axis?

https://github.com/tradingview/lightweight-charts/issues/125#issuecomment-511307557

And the x-axis time will show an exception on some browsers.

What the browser you have?

1reaction
timocovcommented, Apr 10, 2020

Hey @liubin595338764, in #386 we’ve added ability to override default formatter of tick marks, so you can override it to avoid using toLocaleString in your build. It’ll be released in 3.0 version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I change the timezone of the X axis on an existing plot?
Each time I change the time zone in one of these object properties, the zone is automatically reverted to UTC. Is there anything...
Read more >
How to set local timezone on xAxis - Highcharts
You could use the time. timezone property, and just set it to 'Europe/Paris'. That's the easiest way to use local timezone.
Read more >
Datetime x-axis Timezone switch - Bokeh Discourse
I am trying to plot x-axis as datetime. It is showing up correctly. However when I switch timezome (from UTC to an American...
Read more >
How to show local time on the X-Axis of a render timechart ...
Anyone know how to change the time on the x-axis of a render timechart graph in a Log Analytics query to local time?...
Read more >
javascript - Chart JS - X-Axis base on timezone - Stack Overflow
Chartjs graph convert the dates using LocalDateTime, I found this workaround which requires you to change the code of ChartJs graph ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found