-
Notifications
You must be signed in to change notification settings - Fork 30
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
first draft of fiveThirtyEight theme #4
Conversation
is it something with formatting? |
Thank you so much for this PR. This is awesome. Yes, just run Can you add a screenshot of what it looks like now |
Here is how it looks like right now - any suggestions are welcome; |
going to fix
|
Sweet! I'm excited and happy to merge this when you feel it's in a good state to be released. We can keep iterating over time. Would you want to become a maintainer of Vega-Themes? I can add you so you can review PRs and issues for the 538 theme. |
Sorry for the strict formatting requirements. If you use the tslint and prettier extensions in your editor, things should format themselves automagically. |
it seems it does not accept |
In Vega? |
@domoritz both ah yes, maintenance-vise PRs would be nice; if you're ok, feel free to merge this - I won't probably have time to tweak minor details during next week or two. Thank you! |
ah, one more thing - is that ok to name theme export { default as 538 } from './theme-fiveThirtyEight'; |
Let's name it |
Also, can you check what you have done in #4 (comment) |
src/theme-fiveThirtyEight.ts
Outdated
rect: { fill: markColor }, | ||
|
||
range: { | ||
category: ['#30a2da', '#fc4f30', '#e5ae38', '#6d904f', '#8b8b8b'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there more than 5 colors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added 4 more + divergent and heatmap colormaps (see above)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added 4 more colors and heatmap + divergent colormaps
renamed as |
Looks great! |
hm @domoritz can you explain that test fail, please? |
If you rebase against master, this issue should be fixed. |
Can you update the readme and make sure the example page works? I will merge then. |
I think it is good to go - but I can't change your 'example' observable notebook - only fork from it; It's probably better if we change it on your side?
|
Can you change test/index.html? |
Fantastic. Thank you! |
hoorah, |
It's now working on https://beta.observablehq.com/@domoritz/vega-themes-demo |
Style inspired by Charts from fivethirtyeight
based on: