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