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