I am prototyping something with Vega-Lite index chart https://vega.github.io/vega-lite/examples/interactive_index_chart.html
I love the fact that I can reindex the chart to any given date, and see the relative changes between the line series.
However, I find that the lines on the LEFT of the index point to be distracting / confusing to users. Is there any way to FILTER OUT all line charts left of the index point?
I have re-coded the re indexing on click instead of mouse over.. would be great to also just filter out anything prior to my click date. I am new to VEGA, so honestly no clue how to do filter on click.
2
Answers
In your second layer add this transform filter:
Maybe consider adding the opacity to the left lines instead. So they are very faint? Just an idea.
You mean like this?