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
I think it would be valuable to make all the individual colors from Vega schemes accessible programmatically from Altair. Since Vega stores them in a single file, we could parse that and create a Python dictionary that could be used to access single colors from each color scheme. Something like this:
The current palettes.js has changed since this issue was opened.
Lines L1-L12 and L78-L94 would probably break the initial parser idea.
I do agree these would be nice to have available in altair.
I think we should try to push for a Public API for this upstream in (https://github.com/vega/vega) - since that would be safer than dependending on internal library code.
That route was really help for me when I started reaching for vl_convert internals in vega/vl-convert#191
I think we should try to push for a Public API for this upstream in (https://github.com/vega/vega) - since that would be safer than dependending on internal library code.
Tasks
Description
I think it would be valuable to make all the individual colors from Vega schemes accessible programmatically from Altair. Since Vega stores them in a single file, we could parse that and create a Python dictionary that could be used to access single colors from each color scheme. Something like this:
Code block
The text was updated successfully, but these errors were encountered: