<template>
<div class="hige-main">
<div class="hige-table" id="hige-table"> </div>
</div>
</template>
<script>
import * as echarts from 'echarts';
export default {
components: {
},
data() {
return {
myChart: null
};
},
mounted() {
this.drawBar();
window.onresize = () => {
return (() => {
this.resize();
})();
};
},
methods: {
drawBar() {
var chartDom = document.getElementById('hige-table');
this.myChart = echarts.init(chartDom);
let xAxisData = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
let data = [10, 52, 200, 334, 390, 330, 220];
echarts+vue 实现滚动条只可滚动不可缩放+柱状图tooltip背景宽度自定义
最新推荐文章于 2024-05-15 11:00:12 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)