# Conflicts:
#	src/views/charts/Chart.vue
This commit is contained in:
zhangyu
2021-07-07 15:53:16 +08:00
15 changed files with 117 additions and 360 deletions

View File

@@ -6,7 +6,10 @@
import { format } from 'echarts'
import { shortFormatter } from './chartFormatter'
import _ from 'lodash'
export const chartColor = ['#73A0FA', '#73DEB3', '#F7C739', '#EB7E65', '#FFAB67', '#A285D2', '#FFA8CB']
export const chartColor = ['#5370C6', '#90CC74', '#FAC858', '#EE6666',
'#73BFDE', '#3BA172', '#FC8452', '#9960B4',
'#E97CCC', '#FEA69E', '#0F8AB2', '#57CBAC',
'#5888BC', '#63B6AC', '#EDC6B2', '#D5746B']
export function getChartColor (index) {
return chartColor[index % chartColor.length]
}