#未来一周天气变化(最高温度和最低温度)
<template>
<div id="main" :style="{width:'1000px',height:'700px'}"></div>
</template>
<script>
export default {
name: "demo7",
data() {
return {};
},
mounted() {
let Mychart = this.$echarts.init(
document.getElementById("main"),
"macarons"
);
Mychart.setOption({
//标题,每个图表最多仅有一个标题控件,每个标题控件可设主副标题
title: {
//主标题
text: "未来一周气温变化",
//副标题
subtext: "纯属虚构"
},
//提示框,鼠标悬浮交互时的信息提示
tooltip: {
//坐标轴触发
trigger: "axis"
},
//图例
legend: {
data: