Echarts 图例 legend formatter 如何返回 html

答案是不支持html 。

参考链接:https://github.com/apache/incubator-echarts/issues/10524

如果有这种需求建议换一种思路,自己写一段类似于legend的html,然后绝对定位到echarts图表上,就酱。

原文地址:https://www.cnblogs.com/xianxiaobo/p/10954127.html