G2
G2 copied to clipboard
4.0.2版本 legend itemFormatter不生效,求解决啊着急!!!!!!
- G2 Version:
- Platform:
- Mini Showcase(like screenshots):
- CodePen Link:
chart.legend({ itemFormatter: function(val){ return val+'%' } })
4.0 属性变化了,可以具体翻翻 API:
chart.legend({
itemName: {
formatter: (va) => va + '%',
}
});
4.0 属性变化了,可以具体翻翻 API:
chart.legend({ itemName: { formatter: (va) => va + '%', } });
感谢,但api页面打不开啊