I’m a little bit lost because I think I’ve overseeing some issues.
I’m using the offset attribute, but the only thing that happens is more or less that he truncates the last day from yesterday.
Any ideas how i can compare today and yesterdays value in an unaggregated chart?
I am trying to do similar, but seeing different issues I think.
I am trying to chart a comparison of my electricity usage against the previous day. So I have one time series with my monitor’s amps item, and a second time series with the same item and offset by 1 day.
When I run my chart only the ‘today’ series is shown. The offset series is not shown. There’s an entry in the legend, but no lines and nothing shows up in the tooltip for it.
Wow cool, I got it working Many Thanks!!!
Main thing I had to change was xaxis from oh-time-axis to oh-category-axis, change series to oh-aggregate-series and add dimension1: hour
The trick is that you have to define two separate time axes on the same “grid”.
Then you assign the two series (day before and now) to each of these axes (with xAxisIndex 0 & 1), also giving the second series the proper offsetAmount & offsetUnit.