I successfully created a pie chart using highcharts and configured the chart with the following options:
chart: {
type: 'pie',
},
In order to change the width of the text on the chart, I added the following options which force each word to be displayed on a separate line:
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '{point.name} {point.y}',
style: {
width: 50,
fontSize: '20px',
},
}
}
Despite trying to change the color of the label by adding a color property to the style, it did not work. How can I change the color as well as add an underline to the text?
The following image shows the label that I am referring to on my highcharts pie chart:
https://i.stack.imgur.com/vqdfE.png
Additionally, is there a way to create a large white circle in the center of the pie chart, similar to creating a hole in a donut?