vega / vega-lite

A concise grammar of interactive graphics, built on Vega.
https://vega.github.io/vega-lite/
BSD 3-Clause "New" or "Revised" License
4.69k stars 612 forks source link

Setting `toggle=false` prevents selection of multiple points #8066

Open joelostblom opened 2 years ago

joelostblom commented 2 years ago

It seems like setting toggle=false prevents multi-select instead of enabling insertion, here is an example Open the Chart in the Vega Editor

If I change the dropdown at https://vega.github.io/vega-lite/docs/selection.html#toggle from "toggling" to "inserting", there is an error in styling the page and the example does not work:

image

arvind commented 2 years ago

Thanks for filing this issue @joelostblom. It looks like we failed to update our docs when we merged the old single/multi selections into a single, unified point selection with Vega-Lite 5.0.

Unfortunately, and as a result, I don't believe it is possible to only insert values into point selections anymore. So I will update this issue to reflect a feature enhancement.