style: 图表去掉警告

This commit is contained in:
CaptainB 2021-10-27 12:19:01 +08:00 committed by 刘瑞斌
parent a74e9adcbc
commit 7194bef971
8 changed files with 37 additions and 75 deletions

View File

@ -195,11 +195,9 @@
avoidLabelOverlap: false,
hoverAnimation: false,
itemStyle: {
normal: {
borderColor: "#FFF",
shadowColor: '#E1E1E1',
shadowBlur: 10
}
borderColor: "#FFF",
shadowColor: '#E1E1E1',
shadowBlur: 10
},
labelLine: {
show: false

View File

@ -133,11 +133,9 @@ export default {
avoidLabelOverlap: false,
hoverAnimation: false,
itemStyle: {
normal: {
borderColor: "#FFF",
shadowColor: '#E1E1E1',
shadowBlur: 10
}
borderColor: "#FFF",
shadowColor: '#E1E1E1',
shadowBlur: 10
},
labelLine: {
show: false

View File

@ -48,12 +48,9 @@ export default {
data: this.data,
animation: false,
label: {
normal: {
show: true,
position: 'outside',
formatter: '{b}:{c}'
}
show: true,
position: 'outside',
formatter: '{b}:{c}'
}
}
]

View File

@ -93,17 +93,12 @@ export default {
symbolSize: 5,
showSymbol: false,
lineStyle: {
normal: {
width: 1
}
width: 1
},
itemStyle: {
normal: {
color: 'rgb(137,189,27)',
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
}
color: 'rgb(137,189,27)',
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
},
data: [220, 182, 191, 134, 150, 120, 110, 125, 145, 122, 165, 122]
}, {
@ -114,17 +109,12 @@ export default {
symbolSize: 5,
showSymbol: false,
lineStyle: {
normal: {
width: 1
}
width: 1
},
itemStyle: {
normal: {
color: 'rgb(0,136,212)',
borderColor: 'rgba(0,136,212,0.2)',
borderWidth: 12
}
color: 'rgb(0,136,212)',
borderColor: 'rgba(0,136,212,0.2)',
borderWidth: 12
},
data: [120, 110, 125, 145, 122, 165, 122, 220, 182, 191, 134, 150]
}, {
@ -135,16 +125,12 @@ export default {
symbolSize: 5,
showSymbol: false,
lineStyle: {
normal: {
width: 1
}
width: 1
},
itemStyle: {
normal: {
color: 'rgb(219,50,51)',
borderColor: 'rgba(219,50,51,0.2)',
borderWidth: 12
}
color: 'rgb(219,50,51)',
borderColor: 'rgba(219,50,51,0.2)',
borderWidth: 12
},
data: [220, 182, 125, 145, 122, 191, 134, 150, 120, 110, 165, 122]
}]

View File

@ -448,16 +448,12 @@ export default {
symbolSize: 5,
showSymbol: false,
lineStyle: {
normal: {
width: 1
}
width: 1
},
itemStyle: {
normal: {
color: hexToRgb(color[i % color.length]),
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
}
color: hexToRgb(color[i % color.length]),
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
},
};
@ -565,16 +561,12 @@ export default {
symbolSize: 5,
showSymbol: false,
lineStyle: {
normal: {
width: 1
}
width: 1
},
itemStyle: {
normal: {
color: 'rgb(137,189,27)',
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
}
color: 'rgb(137,189,27)',
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
},
}]
};

View File

@ -516,11 +516,9 @@ export default {
symbolSize: 5,
showSymbol: false,
itemStyle: {
normal: {
color: hexToRgb(color[i % color.length]),
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
}
color: hexToRgb(color[i % color.length]),
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
},
};

View File

@ -145,9 +145,7 @@ export default {
data: yAxis1,
type: 'bar',
itemStyle: {
normal: {
color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER
}
color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER
}
},
{
@ -155,9 +153,7 @@ export default {
data: yAxis2,
type: 'bar',
itemStyle: {
normal: {
color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER_SHALLOW
}
color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER_SHALLOW
}
}]
};

View File

@ -223,7 +223,6 @@
</template>
<script>
import echarts from "echarts";
import MsChart from "@/business/components/common/chart/MsChart";
import {findThreadGroup} from "@/business/components/performance/test/model/ThreadGroup";
import {hasPermission} from "@/common/js/utils";
@ -516,11 +515,9 @@ export default {
symbolSize: 5,
showSymbol: false,
itemStyle: {
normal: {
color: hexToRgb(color[i % color.length]),
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
}
color: hexToRgb(color[i % color.length]),
borderColor: 'rgba(137,189,2,0.27)',
borderWidth: 12
},
};