how to populate bind options from data source (not manually)?
See original GitHub issueI’ve modified the stocks example with a drop-down box to select a company, like this: https://vega.github.io/editor/#/gist/vega/mattijn/a25b9ba41a775cf128d1472cd3e44253 (btw, great update to the new editor!)
But now I’ve to declare the bind > options manually ("GOOG", "MSFT", etc) I was hoping I could make use of a Collect Transform to get all (unique) values from a data source, which I can use in the bind signal. But this seems not be supported?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Programmatically Binding DataSource To ComboBox In ...
In this article, we will learn how to bind ComboBox DataSource to Array of objects, List of Objects, DataTable, DataSet, DataView and ...
Read more >Bind ComboBox or ListBox Control to Data - Windows Forms ...
You can bind the ComboBox and ListBox to data to perform tasks such as browsing data in a database, entering new data, or...
Read more >Bind a Report to an Object Data Source
You can select the data source in the Report Explorer and switch to the Properties panel to change the data source settings.
Read more >Simplest way to populate dropdownlist in asp.net (code ...
DropDownList1.DataSource = drpdt; DropDownList1.DataTextField="StringValue"; DropDownList1.DataValueField="CurrencyValue"; DropDownList1.
Read more >DataSource Overview - Kendo UI for jQuery
Learn more about the Kendo UI for jQuery DataSource component, covering all from binding your web app to local arrays of JavaScript objects...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This would be really nice to have: for example to fill a “bind select” with items straight from the data itself. Any changes in the current Vega-release that would make this possible yet?
vega-parser constructs the Spec Scope with bindings that get used in View initialization.
My test case dumps,
The bind elements are constructed here, which leads us to the
forEachcall we see in the stack traceSeems like I could use view.data (see also) to get at the data.
So seems like I just need to stick something like below right here,
I’ll test it out now.