First off, I've been using the new chart (DataViz) tools for a week now. They are awesome.
My question is two-fold:
1) Is there a recommended way to show a time series chart that shows the relative time between data points? If you use the line chart, the data points are the same distance apart regardless of the time span between the two data points.
From a visual perspective, I have been able produce what I need using the "scatterLine" series type. I've accomplished this by converting my time values into their "ticks" representations. However, that produces labels on the x-axis like "634629218399630000".
2) In the absence of an obvious way to do a time series, can I create a custom function (anonymous or otherwise) to format the x-axis labels--the "tick" values--to a more friendly date/time representation.
E.g.
My question is two-fold:
1) Is there a recommended way to show a time series chart that shows the relative time between data points? If you use the line chart, the data points are the same distance apart regardless of the time span between the two data points.
From a visual perspective, I have been able produce what I need using the "scatterLine" series type. I've accomplished this by converting my time values into their "ticks" representations. However, that produces labels on the x-axis like "634629218399630000".
2) In the absence of an obvious way to do a time series, can I create a custom function (anonymous or otherwise) to format the x-axis labels--the "tick" values--to a more friendly date/time representation.
E.g.
xAxis: {
labels: {
format: myFormatFunction(tickValue) {
return
formattedString }
}
}