-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(color): add official ECharts color schemes (#751)
* feat(color): add echarts colors * rename categorical schemes
- Loading branch information
1 parent
46ea739
commit 9f1aafa
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...uperset_ui/superset-ui/packages/superset-ui-color/src/colorSchemes/categorical/echarts.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import CategoricalScheme from '../../CategoricalScheme'; | ||
|
||
const schemes = [ | ||
{ | ||
id: 'echarts4Colors', | ||
label: 'ECharts v4.x Colors', | ||
colors: [ | ||
'#c23531', | ||
'#2f4554', | ||
'#61a0a8', | ||
'#d48265', | ||
'#91c7ae', | ||
'#749f83', | ||
'#ca8622', | ||
'#bda29a', | ||
'#6e7074', | ||
'#546570', | ||
'#c4ccd3', | ||
], | ||
}, | ||
{ | ||
id: 'echarts5Colors', | ||
label: 'ECharts v5.x Colors', | ||
colors: [ | ||
'#5470C6', | ||
'#91CC75', | ||
'#FAC858', | ||
'#EE6666', | ||
'#73C0DE', | ||
'#3BA272', | ||
'#FC8452', | ||
'#9A60B4', | ||
'#EA7CCC', | ||
], | ||
}, | ||
].map(s => new CategoricalScheme(s)); | ||
|
||
export default schemes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters