![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
echarts
我叫刘同学
这个作者很懒,什么都没留下…
展开
-
echart地图上自定义图标
echart提供了renderItem来进行地图上图标的自定义添加,首先需要在series处,把type的类型设置为"custom",然后在进行自定义图标的添加,具体如下所示:series:[{ name: "图标", type: "custom", //配置显示方式为用户自定义 coordinateSystem: "geo", itemStyle: { normal: { color: '#fff' } }, ren原创 2021-09-23 15:58:57 · 5680 阅读 · 2 评论 -
2021-08-16
随着数据获取的变化Echarts动态改变图例中的数字如下图所示图例中要改变的数字这里需要使用formatter函数来进行修改。具体修改如下图所示图例中要改变的数字这里需要使用formatter函数来进行修改。// 使用字符串模板,模板变量为图例名称 {name}formatter: ‘Legend {name}’// 使用回调函数formatter: function (name) {return 'Legend ’ + name;}这里的参数name是返回的图例的名称,每次只能返回一个原创 2021-08-16 16:07:23 · 53 阅读 · 0 评论