Incubator-echarts: <br/> tag does not work on label emphasis formatter

Created on 13 Nov 2019  ·  2Comments  ·  Source: apache/incubator-echarts

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


en not-a-bug author

Most helpful comment

https://www.echartsjs.com/en/option.html#series-pie.emphasis.label.formatter
You can use \n to break line.

All 2 comments

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

https://www.echartsjs.com/en/option.html#series-pie.emphasis.label.formatter
You can use \n to break line.

Was this page helpful?
0 / 5 - 0 ratings