There is a problem with the chart timestamp conversion time
See original GitHub issueLightweight Charts Version:1.1.0
Steps/code to reproduce:
Actual behavior: I am ready for the data, the timestamp is set to 1571210040 when setData in the chart, but there is a problem in rendering time.
The timestamp seems to be a problem when converting
Expected behavior:
Screenshots
CodeSandbox/JSFiddle/etc link:
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Convert Time Zone gives unusual results - but only sometimes?
Solved: Hi - i have a flow that is doing an API call to a service, which responds with a unix timestamp. i'm...
Read more >Converting Unix Timestamp to Date and Displaying it on ...
Dear all, My LineChart displays the next 7 days high-low temperatures. While Y-axis indicates temperature records, X-axis indicates the dates.
Read more >The dates and times in my questions and charts are wrong
Your question or chart is comparing or sorting values with inconsistent or missing time zones. For example, if a flight's departure and arrival...
Read more >Timestamps, Time Zones, Time Ranges, and Date Formats
During ingestion, we can detect the message timestamp, convert it to Unix epoch time (the number of milliseconds since midnight, January 1, 1970...
Read more >Altair time transforms are off? - Using Streamlit
After some googling it seemed that the date format was causing this issue, so I converted the local_time column to an ISOFORMAT which...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i solve this issue… !!! https://jsfiddle.net/saurab_93/ghc74Ldu/15/
yeah this method dateToChartTimeMinute() helps me :- function dateToChartTimeMinute(date) { return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), 0, 0) / 1000; };
https://jsfiddle.net/saurab_93/ghc74Ldu/15/
Thankyou for your response