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
In this discussion we realize that to specify a channel label (for the interactive tips #1612), we need either a {transform, label} value, or an arcane combination of an accessor function with a label property:
channels: {year: Object.assign((d) => d.year, {label: "My custom year label"})}
This is because labelof only reads the value.
It would be nice to be allowed to write instead:
channels: {year: {value: "year", label: "My custom year label"}}
Note that this is not strictly necessary for the given use case, since we can also name the channel as we want (although not with a string which has precedence over the channel’s key name):
In this discussion we realize that to specify a channel label (for the interactive tips #1612), we need either a {transform, label} value, or an arcane combination of an accessor function with a label property:
This is because labelof only reads the value.
It would be nice to be allowed to write instead:
Note that this is not strictly necessary for the given use case, since we can also name the channel as we want (although not with a string which has precedence over the channel’s key name):
(maybe related to #1364)
The text was updated successfully, but these errors were encountered: