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
This works well in the simple case where you have one (or more) marks that wants to specify literal colors.
But what if you want to have some marks that use a color scale, and other marks such as grid lines that want to specify literal colors? It would be nice if you could opt-out of the color scale by providing literal colors on a channel-by-channel basis. Essentially, instead of adopting an identity color scale if all color channels are literal colors, we would instead ignore the scale: "color" declaration if the provided channel values are already literal colors.
The text was updated successfully, but these errors were encountered:
Currently we have some special logic that checks to see if the color channels are literal colors:
plot/src/scales.js
Lines 411 to 417 in b97ba31
This works well in the simple case where you have one (or more) marks that wants to specify literal colors.
But what if you want to have some marks that use a color scale, and other marks such as grid lines that want to specify literal colors? It would be nice if you could opt-out of the color scale by providing literal colors on a channel-by-channel basis. Essentially, instead of adopting an identity color scale if all color channels are literal colors, we would instead ignore the
scale: "color"
declaration if the provided channel values are already literal colors.The text was updated successfully, but these errors were encountered: