Browse Source

fix bug 2778: 改单位

wangqin
qingzhengli 8 months ago
parent
commit
d452377eea
  1. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/components/LineChart/index.vue

6
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/components/LineChart/index.vue

@ -14,12 +14,14 @@
<script>
import * as echarts from "echarts";
import { lineChartOption } from "./chart"
import { cloneDeep } from "lodash";
export default {
name: 'LineChart',
mounted() {
const chartIns = echarts.init(this.$refs.LineChartRef);
chartIns.setOption(lineChartOption);
const options = cloneDeep(lineChartOption);
options.tooltip.formatter = "{b}:{c}(辆)";
chartIns.setOption(options);
},
}
</script>

Loading…
Cancel
Save