![](https://img-blog.csdnimg.cn/direct/bf665163287d4638bd937cdc85092392.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
ECharts
ECharts
lyce_liu
这个作者很懒,什么都没留下…
展开
-
使用echarts制作仪表盘式进度条
import * as echarts from 'echarts';var chartDom = document.getElementById('main');var myChart = echarts.init(chartDom);var option;option = { series: [{ type: 'gauge', boundaryGap: ['0', '100'], radius: [120原创 2021-08-31 18:12:42 · 1143 阅读 · 0 评论 -
echarts制作环形图
import * as echarts from 'echarts';var chartDom = document.getElementById('main');var myChart = echarts.init(chartDom);var option;option = { tooltip: { trigger: 'item' }, legend: { top: '30%', left: 'center' },原创 2021-08-31 18:30:33 · 711 阅读 · 0 评论 -
echart制作环形图
`import * as echarts from 'echarts';var chartDom = document.getElementById('main');var myChart = echarts.init(chartDom);var option;option = { title: { text: '教室占用率', left: 'left' }, legend: {原创 2021-08-31 18:34:21 · 670 阅读 · 0 评论 -
echarts初始化位置偏移问题
第一次加载页面时,echarts初始化位置总是会有偏差,解决:加一个this.$nextTick() mounted() { this.initCharts(); }, methods: { initCharts() { let chart1 = this.$echarts.init(this.$refs.chart1); this.$nextTick(() => { chart1.resize(); });原创 2021-09-15 17:32:15 · 2031 阅读 · 0 评论