vega icon indicating copy to clipboard operation
vega copied to clipboard

Support input element suggestions and slider tickmarks via datalists

Open joelostblom opened this issue 3 years ago • 2 comments

Input elements such as search or text boxes can show suggestions by referring to the id of a datalist. It would be really cool to leverage this functionality in Vega, but I can't figure out how I can specify the datalist inside a Vega spec since the list attribute only takes the id to reference which means I can't inline the datalist itself, so someway of supporting this would be neat.

Here is an example spec where I would like a set of autocomplete suggestions of car names to show up when starting to type in the box. Open the Chart in the Vega Editor

Somewhat related to https://github.com/vega/vega/issues/1488

joelostblom avatar Mar 21 '23 02:03 joelostblom

This came up again in https://github.com/vega/altair/pull/3459. Are there any ideas for how Vega could support datalists, or insight whether it is not easily possible?

joelostblom avatar Jul 06 '24 19:07 joelostblom

Another advantage of supporting datalists would be the addition of tick marks and labels to sliders.

joelostblom avatar Mar 11 '25 14:03 joelostblom