随笔分类 - Echarts
摘要:1、进度条颜色是渐变的 <template> <div id="progress_bar" ref="myChart"></div> </template> <script> import * as echarts from 'echarts'; import { addListener, remo
阅读全文
摘要:效果图: html: <ChartDom :chart-option="option" :chart-style="chartStyle" /> js: option: { tooltip: { trigger: 'axis', // show: false, formatter() { // le
阅读全文
摘要:参考:https://github.com/apache/echarts/issues/13943 <div id="card" ref="chartDom" :style="chartStyle"></div> import { shallowRef } from 'vue'; import *
阅读全文
摘要:解决方案:可以使用formatter函数去结局,代码如下: series: [ { name: '', type: 'pie', radius: ['50%', '85%'], avoidLabelOverlap: false, label: { // show: false, // positio
阅读全文
摘要:参考https://blog.csdn.net/Kimser/article/details/106683221 var myChart = echarts.init(document.getElementById(domid)); window.addEventListener('resize',
阅读全文