引入折线图
mounted () { // 在mounted生命周期函数中实例化echarts对象
this.drawHistogarm()
},
methods: {
drawHistogarm () { // 初始化echarts折线图实例
let histogram = this.$echarts.init(document.getElementById('histogramChart'))
let option = { tooltip: {
trigger: 'axis'},
title: {
text: '电偶温度',
textStyle: { // 设置文字样式
color: 'white'
}},
xAxis: {
type: 'category', // 数值起始和结束两端空白策略
boundaryGap: