ResponsiveLine - Is there a way to handle x value of epochtime?
See original GitHub issueIs your feature request related to a problem? Please describe. Is there a type mapping of epoch time for xScale attribute for Line graph? Below is the array of data object where x holds value of type epoch time:
"data": [{x: 1591808400000, y: 0.01913120654800059}
{x: 1591815600000, y: 0.01980695317959469}
{x: 1591822800000, y: 0.015162935047661271}
{x: 1591830000000, y: 0.016875782812190994}
{x: 1591837200000, y: 0.04286819136007071}]
Describe the solution you’d like Does the solution exists for xScale and axisBottom? If not how can I achieve this?
Describe alternatives you’ve considered I have not found any direct solution for epoch type.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Beautiful and Responsive Line Charts Using Nivo, React and ...
The X -axis will display time values, and since our data has the time value as the number of seconds elapsed since the...
Read more >Solved: How to convert epoch time to human readable format...
the function strftime(X,Y ) takes an epochtime value, X, as the first argument and renders it as a string using the format specified...
Read more >Epoch Converter - Unix Timestamp Converter
Easy epoch/Unix timestamp converter for computer programmers. Includes epoch explanation and conversion syntax in various programming languages.
Read more >Get current time in seconds since the Epoch on Linux, Bash
date doesn't seem to offer that option. Is there an easy way? linux · bash · datetime · Share.
Read more >How do I get the current Unix time in milliseconds in Bash?
This: date +%s. will return the number of seconds since the epoch. This: date +%s%N. returns the seconds and current nanoseconds.
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 FreeTop 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
Top GitHub Comments
@Deliaz, the issue when you enable
useMesh
is thatx
values are nowDate
objects, which cannot be rendered as is, please addxFormat="time:%d.%b %H:%M"
, this is gonna fix it.@paigewilliams Sorry about that. I think I cleaned up some of my sandboxes and this one got deleted. Based on the issue I have recreated one here: https://codesandbox.io/s/spring-violet-rqi02