|
|
@ -2,6 +2,456 @@ import { EChartsOption } from 'echarts' |
|
|
|
|
|
|
|
const { t } = useI18n() |
|
|
|
|
|
|
|
export const lineOptions1: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions2: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions3: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions4: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions5: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions6: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions7: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions8: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions9: EChartsOption = { |
|
|
|
xAxis: { |
|
|
|
data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12], |
|
|
|
boundaryGap: false, |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
left: 20, |
|
|
|
right: 20, |
|
|
|
bottom: 20, |
|
|
|
top: 50, |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross' |
|
|
|
}, |
|
|
|
padding: [5, 10] |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
axisTick: { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
data: ['目标','实际'], |
|
|
|
top: 20 |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
name: '实际', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
},{ |
|
|
|
name: '目标', |
|
|
|
smooth: true, |
|
|
|
type: 'line', |
|
|
|
data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'cubicInOut' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
export const lineOptions: EChartsOption = { |
|
|
|
|
|
|
|
xAxis: { |
|
|
@ -50,11 +500,16 @@ export const lineOptions: EChartsOption = { |
|
|
|
itemStyle: {}, |
|
|
|
data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], |
|
|
|
animationDuration: 2800, |
|
|
|
animationEasing: 'quadraticOut' |
|
|
|
animationEasing: 'quadraticOut', |
|
|
|
markLine: { |
|
|
|
data: [{ |
|
|
|
name: 'Y 轴值为 100 的水平线', |
|
|
|
yAxis: 100 |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
export const pieOptions: EChartsOption = { |
|
|
|
// title: {
|
|
|
|
// text: t('analysis.userAccessSource'),
|
|
|
|