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
For discrete and discretizing scales, an array of desired output values or an object with a field property representing the range values. For example, if a field color contains CSS color names, we can set range to {field: "color"}.
When I try this, nothing is shown in the plot: example. Data viewer suggests that the color field doesn't make it into the resulting dataset.
If I bind this field (color) to another property, everything suddenly works fine! Example.
As I undestand, both examples linked above are supposed to give the same result.
The text was updated successfully, but these errors were encountered:
Docs (https://vega.github.io/vega-lite/docs/scale.html#range) say that color values can be taken directly from data:
When I try this, nothing is shown in the plot: example. Data viewer suggests that the
color
field doesn't make it into the resulting dataset.If I bind this field (
color
) to another property, everything suddenly works fine! Example.As I undestand, both examples linked above are supposed to give the same result.
The text was updated successfully, but these errors were encountered: