Commit 0f631ee7 authored by afc163's avatar afc163

update g2 colors globally

parent c10ca6f3
......@@ -64,7 +64,7 @@ class Pie extends Component {
lineWidth = 0,
} = this.props;
const defaultColors = colors || ['#8543E0', '#F04864', '#FACC14', '#1890FF', '#13C2C2', '#2FC25B'];
const defaultColors = colors;
let selected = this.props.selected || true;
let tooltip = this.props.tooltips || true;
......
......@@ -3,9 +3,17 @@ import G2 from 'g2';
G2.track(false);
const colors = [
'#8543E0', '#F04864', '#FACC14', '#1890FF', '#13C2C2', '#2FC25B', '#fa8c16', '#a0d911',
];
const config = {
...G2.Theme,
defaultColor: '#1089ff',
colors: {
default: colors,
intervalStack: colors,
},
tooltip: {
background: {
radius: 4,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment