-
I'm trying to create a visualisation based on this example, but I want to set a default value for the selection so that a certain value is highlighted by default before the user hovered over the graph. This should be possible by adapting the top few lines of the example and adding a const hover = vl.selectPoint('hover')
.encodings('x')
.value("2010-02-01") // this doesn't seem to work (my data has values by day)
.on('mouseover')
.toggle(false)
.nearest(true); I tried passing it as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This seems to be a question specific to Vega-Lite-API. In Vega-Lite , you can pass an object with date components such as |
Beta Was this translation helpful? Give feedback.
This seems to be a question specific to Vega-Lite-API. In Vega-Lite , you can pass an object with date components such as
{"year": 2021}
.