修改时间组件
This commit is contained in:
@@ -127,11 +127,9 @@ const Grade = (list: any) => {
|
||||
name: '电压等级',
|
||||
data: echartsndArr
|
||||
},
|
||||
yAxis: [
|
||||
{
|
||||
type: 'value'
|
||||
}
|
||||
],
|
||||
yAxis: {
|
||||
name: '次数' // 给X轴加单位
|
||||
},
|
||||
options: {
|
||||
series: [
|
||||
{
|
||||
@@ -160,7 +158,7 @@ const Grade = (list: any) => {
|
||||
}
|
||||
}
|
||||
//时间
|
||||
const Relation = (list: any) => {
|
||||
const Relation = (list: any, interval: number) => {
|
||||
let echartsndArr: string[] = []
|
||||
let echartsArr: string[] = []
|
||||
let echartswArr: string[] = []
|
||||
@@ -194,7 +192,7 @@ const Relation = (list: any) => {
|
||||
})
|
||||
monthlyStatistics.value = {
|
||||
title: {
|
||||
text: '月份'
|
||||
text: interval == 1 ? '年份' : interval == 2 ? '季度' : interval == 3 ? '月份' : ''
|
||||
},
|
||||
tooltip: {
|
||||
formatter: function (params: any) {
|
||||
@@ -220,7 +218,9 @@ const Relation = (list: any) => {
|
||||
name: '月份', // 给X轴加单位
|
||||
data: echartsndArr
|
||||
},
|
||||
|
||||
yAxis: {
|
||||
name: '次数' // 给X轴加单位
|
||||
},
|
||||
options: {
|
||||
series: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user