![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
echarts
且菜且折腾
qq:290573077
展开
-
echart图表鼠标放上去显示百分比,保留一位小数
默认情况是这样的tooltip: { trigger: "item", formatter: "{a} <br/>{b} : {c} ({d}%)", },默认效果是这样的修改后代码是这样的tooltip: { trigger: "item", formatter: function (a: any) { return ( a.seriesName + "<br/&g原创 2021-09-01 11:52:40 · 3022 阅读 · 0 评论 -
环形图中间怎么加文字
option = { graphic: [{ //环形图中间添加文字 type: 'text', //通过不同top值可以设置上下显示 left: 'center', top: '45%', style: { text: '35%', textAlign: 'center', fill: 'blue', /..原创 2020-11-11 14:20:08 · 2362 阅读 · 0 评论