You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"orient": {"signal": "'top'"}, // does not work
"direction": {"signal": "'horizontal'"}, // works
"columns": {"signal": "2"}, // works
Could "orient" also accept signal expressions so that the position of the entire legend can be changed during run time? The use case for this is when the chart container size changes, the legend should be allowed to change also for optimal placement.
Legend orient does not currently support signal values, but that can be changed fairly easily. Look for that in the official 5.0 release. However, a signal value for direction violates the schema and can not be supported: the parser uses the direction value to generate appropriate encodings at parse time. If it happened to work in your example above it is probably only because the parser assumed the direction to be horizontal by default.
Vega v5.0.0-rc5 Legend "orient"
does not seem to accept signal expressions:
Could "orient" also accept signal expressions so that the position of the entire legend can be changed during run time? The use case for this is when the chart container size changes, the legend should be allowed to change also for optimal placement.
Note: The tutorial at:
shows changing placement of legends using select option for
but there is not a complete example with Vega signal binding to illustrate how this can be accomplished from within the Vega v5 spec.
The text was updated successfully, but these errors were encountered: