Pie chart how to break line in dataLabels?
See original GitHub issueI want to let my dataLabels break line,how do i do? now:
I wnat this:
I have try \n,\r\n,
but not work.
my code now is:
dataLabels: { enabled: true, style: { fontSize: '15px' }, formatter: function (value, opts) { return [opts.w.globals.labels[opts.seriesIndex], value + '%'] } },
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Pie dataLabels and line break - Highcharts official support forum
Hello, In some conditions, some elements are not visible in a pie chart. This occours especially when a line break is added in...
Read more >Add \n or line break on chart.js (pie chart) labels - Stack Overflow
I tried to add \n on my pie chart labels. But it doesn't seem working. The reason why I want to add \n...
Read more >Change the format of data labels in a chart - Microsoft Support
Click the data labels whose border you want to change. Click twice to change the border for just one data label. Click Fill...
Read more >Pie chart series label line break - OpenText Forums
<p>Adding line breaks in a data label for SVG charts is not as straightforward as with Highcharts, i.e. you cannot directly control the ......
Read more >Pie chart in Excel with data labels instead of hard to read legend
00:00 Create Pie Chart in Excel00:13 Remove legend from a chart00:18 Add labels to each slice in a pie chart00:29 Change chart labels...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
temporarily fix using
as (unknown) as (string | number);
Hi, I using 3.22.2 and try this, but still get error, cause in “apex-types.d.ts” formatter is still this: line 708:
formatter?(val: string | number | number[], opts?: any): string | number;
Thanks for your help!