G2 icon indicating copy to clipboard operation
G2 copied to clipboard

4.0.2版本 legend itemFormatter不生效,求解决啊着急!!!!!!

Open kfcvime50 opened this issue 6 years ago • 3 comments

  • G2 Version:
  • Platform:
  • Mini Showcase(like screenshots):
  • CodePen Link:

kfcvime50 avatar Mar 16 '20 07:03 kfcvime50

chart.legend({ itemFormatter: function(val){ return val+'%' } })

kfcvime50 avatar Mar 16 '20 07:03 kfcvime50

4.0 属性变化了,可以具体翻翻 API:

chart.legend({
  itemName: {
    formatter: (va) => va + '%',
  }
});

simaQ avatar Mar 16 '20 07:03 simaQ

4.0 属性变化了,可以具体翻翻 API:

chart.legend({
  itemName: {
    formatter: (va) => va + '%',
  }
});

感谢,但api页面打不开啊

kfcvime50 avatar Mar 16 '20 07:03 kfcvime50