echarts [Bug] if "series-pie.label.overflow=break" it breaks "by character" instead of "by word"

pwuypxnk  于 2022-12-31  发布在  Echarts
关注(0)|答案(2)|浏览(239)

Version

5.3.0+

No response

Steps to Reproduce

series: [

{
                type: 'pie',
                id: 'pie',
                radius: '40%',
                center: ['50%', '50%'],

                emphasis: {
                    focus: 'self'
                },
                label: {
                    formatter: '{b}\n{@current}%',
                    overflow: 'break'                        
                }
            }
        ]

Current Behavior

overflow: 'break' for pie series label breaks by character instead of by word

Expected Behavior

overflow: 'break' for pie series label should break by word.

Environment

- OS: Windows 10
- Browser: Chrome
- Framework: Javascript

Any additional comments?

No response

gtlvzcf8

gtlvzcf81#

Please provide the data to reproduce the problem.

a1o7rhls

a1o7rhls2#

@ParachainsDev Please provide a demo for the issue either with Official Editor , CodePen , CodeSandbox or JSFiddle .

相关问题