|
|
@@ -506,7 +506,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import * as echarts from 'echarts';
|
|
|
+// import * as echarts from 'echarts';
|
|
|
+import * as echarts from 'echarts/core';
|
|
|
+import { TooltipComponent, GridComponent } from 'echarts/components';
|
|
|
+import { LineChart } from 'echarts/charts';
|
|
|
+import { UniversalTransition } from 'echarts/features';
|
|
|
+import { CanvasRenderer } from 'echarts/renderers';
|
|
|
+
|
|
|
+echarts.use([TooltipComponent, GridComponent, LineChart, CanvasRenderer, UniversalTransition]);
|
|
|
+
|
|
|
export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
@@ -722,7 +730,7 @@ export default {
|
|
|
// 使用刚指定的配置项和数据显示图表。
|
|
|
// if ([0, 1, 2].includes(i)) {
|
|
|
chart.setOption({
|
|
|
- grid: { top: 10, left: 15, right: 15, bottom: 20 },
|
|
|
+ grid: { top: 10, left: 35, right: 25, bottom: 20 },
|
|
|
color: ['#0977fd'],
|
|
|
tooltip: { trigger: 'item', backgroundColor: 'transparent' },
|
|
|
xAxis: {
|