antvis/G2

Chart Label doesn't support html values #3680

recaph posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

Edit on CodeSandbox

Steps to reproduce

Create chart and try to formal Label as HTML

Environment Info
g2 4.0.15
System -
Browser -

I am trying to get full value of the genre label as a tooltip when value is too long (greater > 8)

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


I am trying to migrate from 3.5.17 to this version and lost the functionality... What to know the full value of label when there is truncation by hovering over the label..

posted by recaph over 3 years ago

4.x remove html label, you can try to use annotation().html instead.

posted by hustcc over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests