-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentation of color schemes and options #2861
Comments
@mattijn I can take a stab at this as I was digging into this while setting a theme for my company's usage. One question that has come up, is it possible to add a new "named" color scheme? For instance could we define something like this. alt.Scale(scheme="custom_blacks") In reading the vega/vega-lite documentation, this does not seem possible as a Javascript function needs to be called to add the scheme but I just wanted to check. (fwiw, I have submitted documentation updates before and submitted an example in the past so I think I can do it. ) |
That would be great @kindofluke! Here is the explanation page how to build the docs locally. There are currently three different requirements pages: I'm not completely certain if you need all these requirements for building the docs. I think 1 & 3 from the list above is sufficient. But if you can't work it out, just send a ping and I will try to help. Regarding adding a new named color scheme, I think you are right.
But I'm not aware of examples that have explored this route to register custom color schemes.
click for example code for discrete and continuous color schemes
charts_continuous : Open the Chart in the Vega Editor |
Gentle ping @kindofluke, did you manage to make a start? I was planning to start working on this as well if you don't mind. |
So sorry. I made a branch and built the docs successfully but didn’t get much farther. I guess my day job got in the way. |
No problem! Completely understandable. If you don't mind, I like to give it a try in coming week as well. |
To change a color scheme I mostly end up at this Vega page: https://vega.github.io/vega/docs/schemes/.
Even Vega-Lite does not have its own documentation for colors.
Lets add these as well to the Altair documentations.
Probably good to also have a section on the
interpolate
option as is shown here: #2605 (comment)This Observable notebook is also very nice: https://observablehq.com/@simon-lang/vega-colour-schemes
The text was updated successfully, but these errors were encountered: