You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been testing and trying to figure out how to update and animate the min (in a way similar to allowing users to select 1 Year, 3 Year, 5 Year ranges to view the data with), and thought that using something like chart.axis.min({x: '2021-03-01'}) would be the answer. However, the chart.axis.min doesn't seem to take date/time formatted strings like that.
I've ended up testing a timestamp, and that also didn't work -- until I added three zeroes to the end of it. For some reason, this seems to work. For instance, 1669046646 is the timestamp for the time I'm writing this, but that wouldn't work properly in the chart (being way too small). However, 1669046646000 would.
I'm totally open to the idea that I'm misinterpreting or misreading something here - but why would adding three zeroes work? Is this a bug? A feature? Just curious!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey! I've found what I think is some weird behaviour with this library, but I might just be misinterpreting.
I've set up a timeseries chart to show points across dates using the code below:
I've been testing and trying to figure out how to update and animate the min (in a way similar to allowing users to select 1 Year, 3 Year, 5 Year ranges to view the data with), and thought that using something like
chart.axis.min({x: '2021-03-01'})
would be the answer. However, thechart.axis.min
doesn't seem to take date/time formatted strings like that.I've ended up testing a timestamp, and that also didn't work -- until I added three zeroes to the end of it. For some reason, this seems to work. For instance,
1669046646
is the timestamp for the time I'm writing this, but that wouldn't work properly in the chart (being way too small). However,1669046646000
would.I'm totally open to the idea that I'm misinterpreting or misreading something here - but why would adding three zeroes work? Is this a bug? A feature? Just curious!
Beta Was this translation helpful? Give feedback.
All reactions