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
. Rather we format the date through a function call like this if we converted the date to milliseconds since 1970-01-01. We could really provide any date format and just adjust the function provided to the xAxis.
Thanks for putting this together. I believe, rCharts should take the hassle out of handling dates for users, providing a simple way for them to choose the format.
It seems like toJSON accepts formatting arguments, which allow javascript dates to be preserved as milliseconds after 1970 (thanks to Ahmed Nagi). I need to investigate this and fix the default toJSON function in getPayload.
Each javascript library seems to like dates as x in a different way. I wanted to document the behavior and then explore how rCharts should handle.
nvd3 fairly agnostic but rCharts provides x in a difficult form
which means we cannot parse here like this
or
. Rather we format the date through a function call like this if we converted the date to milliseconds since 1970-01-01. We could really provide any date format and just adjust the function provided to the xAxis.
polycharts likes %Y-%m-%d
The convert is easy, but polycharts does not seem to handle the date in the tooltip hover, only in the x axis.
Rickshaw likes seconds since 1970-01-01 or Unix time
rCharts implementation is not complete but Rickshaw seems to handle this universally.
Morris likes %Y-%m-%d like polycharts and seems to handle really well
I have not yet explored date handling in xCharts or Highcharts, but will as their support.
rCharts responsibility in handling dates
The question is
The text was updated successfully, but these errors were encountered: