随笔分类 -  Echarts

摘要:1、进度条颜色是渐变的 <template> <div id="progress_bar" ref="myChart"></div> </template> <script> import * as echarts from 'echarts'; import { addListener, remo 阅读全文
posted @ 2022-09-12 17:23 haha-uu 阅读(2906) 评论(0) 推荐(0) 编辑
摘要:效果图: html: <ChartDom :chart-option="option" :chart-style="chartStyle" /> js: option: { tooltip: { trigger: 'axis', // show: false, formatter() { // le 阅读全文
posted @ 2022-04-19 18:06 haha-uu 阅读(299) 评论(0) 推荐(0) 编辑
摘要:参考:https://github.com/apache/echarts/issues/13943 <div id="card" ref="chartDom" :style="chartStyle"></div> import { shallowRef } from 'vue'; import * 阅读全文
posted @ 2022-04-14 14:58 haha-uu 阅读(701) 评论(0) 推荐(0) 编辑
摘要:解决方案:可以使用formatter函数去结局,代码如下: series: [ { name: '', type: 'pie', radius: ['50%', '85%'], avoidLabelOverlap: false, label: { // show: false, // positio 阅读全文
posted @ 2021-02-22 18:05 haha-uu 阅读(575) 评论(0) 推荐(0) 编辑
摘要:参考https://blog.csdn.net/Kimser/article/details/106683221 var myChart = echarts.init(document.getElementById(domid)); window.addEventListener('resize', 阅读全文
posted @ 2020-08-04 20:34 haha-uu 阅读(1857) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示