标签: ECharts图例如何格式化文本

后浪云ECharts教程:ECharts图例组件配置 格式化文本

legend.formatter   |   string, Function [ default: null ] 用来格式化图例文本,支持字符串模板和回调函数两种形式。 示例: // 使用字符串……