Skip to content

<br/> tag does not work on label emphasis formatter #11638

@daniellycosta

Description

@daniellycosta

Version

4.3.0

Reproduction link

https://codepen.io/daniellycosta/pen/MWWqxPr

Steps to reproduce

It's just put a formatter using <br/> outside tooltip like in the example below

label: { 
    normal: {
        show: false,
        position: 'center'
     },
     emphasis: {
        show: true,
        formatter: "{b} <br/> {d}%",
        textStyle: {
        fontSize: '30',
        fontWeight: 'bold',
                        
         }
      }
 }

What is expected?

break line

What is actually happening?

show <br/> tag


I tested using my application and using apache site example

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions