Adjust chart palette

This commit is contained in:
cuigh 2018-04-09 18:48:18 +08:00
parent 7d1bf77be3
commit 2277893dfe
3 changed files with 25 additions and 41 deletions

View File

@ -1229,24 +1229,16 @@ var Swirl;
} }
getColors() { getColors() {
let colors = [ let colors = [
'#00d1b2', '#45aaf2',
'#209cee', '#6574cd',
'#3272dc', '#a55eea',
'#23d160', '#f66d9b',
'#ffdd57', '#cd201f',
'#ff3860', '#fd9644',
'#363636', '#f1c40f',
'#c23531', '#7bd235',
'#2f4554', '#5eba00',
'#61a0a8', '#2bcbba',
'#d48265',
'#91c7ae',
'#749f83',
'#ca8622',
'#bda29a',
'#6e7074',
'#546570',
'#c4ccd3',
]; ];
this.shuffle(colors); this.shuffle(colors);
return colors; return colors;
@ -1341,7 +1333,7 @@ var Swirl;
series: [{ series: [{
type: this.opts.type, type: this.opts.type,
radius: '80%', radius: '80%',
center: ['45%', '50%'], center: ['40%', '50%'],
}], }],
}); });
} }
@ -1366,7 +1358,7 @@ var Swirl;
grid: { grid: {
left: 60, left: 60,
top: 30, top: 30,
right: 30, right: 20,
bottom: 30, bottom: 30,
}, },
tooltip: { tooltip: {

File diff suppressed because one or more lines are too long

View File

@ -134,24 +134,16 @@ namespace Swirl.Core {
// '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0', // '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0',
// ]; // ];
let colors = [ let colors = [
'#00d1b2', '#45aaf2',
'#209cee', '#6574cd',
'#3272dc', '#a55eea',
'#23d160', '#f66d9b',
'#ffdd57', '#cd201f',
'#ff3860', '#fd9644',
'#363636', '#f1c40f',
'#c23531', '#7bd235',
'#2f4554', '#5eba00',
'#61a0a8', '#2bcbba',
'#d48265',
'#91c7ae',
'#749f83',
'#ca8622',
'#bda29a',
'#6e7074',
'#546570',
'#c4ccd3',
]; ];
this.shuffle(colors); this.shuffle(colors);
return colors; return colors;
@ -257,7 +249,7 @@ namespace Swirl.Core {
series: [{ series: [{
type: this.opts.type, type: this.opts.type,
radius: '80%', radius: '80%',
center: ['45%', '50%'], center: ['40%', '50%'],
}], }],
}); });
} }
@ -287,7 +279,7 @@ namespace Swirl.Core {
grid: { grid: {
left: 60, left: 60,
top: 30, top: 30,
right: 30, right: 20,
bottom: 30, bottom: 30,
}, },
tooltip: { tooltip: {