Jake_Raz
07-09-2024ETL
Hide the leader lines on Pie Charts when displaying Value or Category Labels
In the formatting options for the Pie Chart widget, under the 'Design' tab, you can choose to display various data labels on the chart. If you select either "Value" or "Category" then these will display outside the Pie Chart and will also display little leader lines (or pointer lines, or whatever you want to call them) that point from the value to the pie slice they belong to.
Is there a script I can use to hide these, while still displays the value and/or category? Here's a mock-up of what I mean:
Hey Jake_Raz ,
Please try to use the following Widget Script on the Pie Chart to remove the lines while still displaying the values or categories.
widget.on('processresult', function(w, args) { args.result.series.forEach(function(series) { series.dataLabels = { enabled: true, connectorWidth: 0, // Set the width of the line (connector) to 0 style: { textOutline: 'none' // Remove text outline if needed } }; }); });
Best Regards