不废话 取之即用

<template>
<div>
<div>
<div id="barMain"
style="width: 1300px; height:700px"></div>
</div>
</div>
</template>
<script>
import "echarts-gl";
import * as echarts from "echarts";
export default {
name: "Bar3DSimpleGraph",
mounted() {
this.drawLine();
},
methods: {
//开始画图了
drawLine() {
console.log(this);
// 基于准备好的dom,初始化echarts实例
let myChart = echarts.init(document.getElementById("barMain"));
var valMin = 29;
var valMax = 30;
let option = {
visualMap: {
show: false,
min: valMin,
max: valMax,
inRange: {
color: [
"#313695",
"#4575b4",
"#74add1",
"#abd9e9",
"#e0f3f8",