修改地图

dev
夜笙歌 1 year ago
parent 8ffacff93b
commit 42ae266a56

@ -158,7 +158,9 @@ export default {
return { return {
centerNum: {}, centerNum: {},
chart1Option: { chart1Option: {
tooltip: {}, tooltip: {
formatter: "{b} : {c}%",
},
angleAxis: { angleAxis: {
max: 100, max: 100,
clockwise: true, clockwise: true,
@ -295,12 +297,14 @@ export default {
methods: { methods: {
async setChart1() { async setChart1() {
const {rows: data} = await monitorPercentage() const {rows: data} = await monitorPercentage()
let data1 = data.slice(0, 4)
data1.reverse()
let option1 = { let option1 = {
...this.chart1Option, ...this.chart1Option,
series: [ series: [
{ {
type: "bar", type: "bar",
data: data.slice(0, 4).map((e, i) => { data: data1.map((e, i) => {
return { return {
value: parseFloat(e.percentage), value: parseFloat(e.percentage),
name: e.sceneName, name: e.sceneName,

Loading…
Cancel
Save