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
You can absolutely compare two time series, no need to be aggregates:
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.
I am however trying to do a MONTH comparison which seems to be a bit skewed:
I am guessing this is due to the different number of days in each Month (28, 30 or 31).
Any ideas on how to “fix” this?
I though of using an initial period of 30 days - but this does not seem to be supported.