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.56k stars 596 forks source link

Make it easier to programmatically reads default values for certain properties. #6075

Open kanitw opened 4 years ago

kanitw commented 4 years ago

In D3, one can call a property's method without a parameter to reads the property's value.

In Vega-Lite, the only way currently is to inspect the output Vega, which isn't always available.

domoritz commented 4 years ago

Vega-Lite generated declarative Vega. Which methods do you want to change?

kanitw commented 4 years ago

We could consider providing a way to read certain values, which is useful for a GUI to know anyway (e.g., in Voyager).