Relative Content

Tag Archive for vega-lite

Extending step-after vega-lite graph to todays date

I am trying to make a step-after graph in vega-lite like this example https://vega.github.io/vega-lite/examples/line_step.html. It has values on discrete dates. I want to extend the graph so the last step goes all the way to today´s date (making it an actual step and not just a vertical line at the last date in the data).
I tried but failed to find a way to add a calculated extra row to the data i.e.: {date:<today´s date>, value:<last_value>}
Any ideas?

some data on a vega lite chart ends up on the wrong bar

my issue is that the link (displayed in the tooltip for trouble shooting) ends up in the wrong bar and the rest of the tooltip is fine. March has April’s link. The links won’t work in the sample but the month is in the start and end of the dates…