Skip to content
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

Add lyftColor to the game 💯 #4682

Merged
merged 2 commits into from
Mar 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions superset/assets/backendSync.json
Original file line number Diff line number Diff line change
Expand Up @@ -2747,6 +2747,10 @@
[
"googleCategory20c",
"googleCategory20c"
],
[
"lyftColors",
"lyftColors"
]
],
"description": "The color scheme for rendering chart",
Expand Down
8 changes: 8 additions & 0 deletions superset/assets/javascripts/modules/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ export const bnbColors = [
'#b37e00',
'#988b4e',
];

export const lyftColors = [
'#ff00bf', // pink
'#352384', // purple
'#333447', // carbon
'#f3f3f5', // silver
];

const d3Category10 = d3.scale.category10().range();
const d3Category20 = d3.scale.category20().range();
const d3Category20b = d3.scale.category20b().range();
Expand Down