Replies: 2 comments 2 replies
-
Hi there,
filters:
- fn: |
({meta}) => ({
xs: [...meta.raw_today, ...meta.raw_tomorrow].map(({ hour }) => new Date(hour)),
ys: [...meta.raw_today, ...meta.raw_tomorrow].map(({ price }) => price),
})
filters:
- fn: |
...
- store_var: forecast Then in the subsequent ones you can use
Regarding using vars instead, I don't know what a map_y would do that, but a filled scatter trace is probably better anyway. Let me know how it goes! Btw, you'll stilll get a gap with the dotted line, to avoid that you could either use offset or add an extra data point at the start with the last x value of the last future price. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! I now use concatenation for all prices instead. Getting close :)
current function looks like this
|
Beta Was this translation helpful? Give feedback.
-
I am trying to create a plot from energi data service in which I get the price forecast in a color coded fashion depending on the forecast price. I am pretty close to getting where I want but right now there is a gap when crossing a date. I have also tried something similar with type: bar plots but that shifts the data each time I add a bar which has a map_y statement.

So a few questions:
Thanks :)
The code for the card is here:
Beta Was this translation helpful? Give feedback.
All reactions