score:1
Inside events chart.events.load you can also update style for specific data labels.
events: {
load: function() {
let chart = this;
chart.series[0].data[0].update({
dataLabels: {
useHTML: true,
style: {
fontSize: '20px',
color: 'red',
}
}
})
}
}
https://jsfiddle.net/BlackLabel/vnbxf64a/
Other options is change properties format and add breaks, to customize the text truncation in data tables you have the option to add extra CSS styles in line.
dataLabels: {
useHTML: true,
format: '<p class="truncate"><b>{point.name}</b></br>{point.y}</p>',
style: {
fontSize: '20px',
color: 'red',
textOverflow: 'ellipsis'
}
}
.truncate {
width: 220px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 5px 0;
}
https://jsfiddle.net/BlackLabel/vnbxf64a/1/
Try use alignTo: 'plotEdges'
, they set label touches the nearest vertical edge of the plot area, but I'm not sure how exactly you want to align the labels.
https://api.highcharts.com/highcharts/series.pie.dataLabels.alignTo
Source: stackoverflow.com
Related Articles
- Highcharts Pie/Donut Chart highlighting and aligning labels
- highcharts - donut chart - Labels inside and outside
- Highcharts donut chart without inner pie?
- Highcharts donut chart customization
- Highcharts - labels inside and outside a pie chart
- Highcharts not displaying data labels for Pie chart in arabic
- 3 layer donut chart in Highcharts
- Highcharts Column chart with drilldown, remove hyperlink like formatting from x-axis labels
- Highcharts stacked bar chart hide data labels not to overlap
- Highcharts Donut Chart text in center change on hover
- Highcharts Donut chart is rendered as a Pie chart in IE 8
- highcharts - precision for stacked column chart data labels
- Highcharts problem - showing labels in zoomable chart
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- Chart highlighting in the highcharts javascript API
- Highcharts 3d bar chart data labels position is wrong
- Highcharts - Rotate pie chart aligning the clicked section to a fixed point (180°)
- Distance between x-axis labels and the chart in Highcharts
- HighCharts Stock Chart error code 18
- Hide Data Labels in Pie Chart below 400px width - Highcharts
- Highcharts Gauge Chart with text labels
- HighCharts - Need more space between bottom of chart and Xaxis labels
- set Pie chart labels exact in center of Slices of PIE highcharts
- highcharts donut chart center text overlaps with tooltip
- Highcharts - how to do a responsive pie chart when the texts of the labels are long
- Highcharts Pie chart multi line labels overlapping
- Custom CSS classes for Data Labels in Donut Pie Chart
- jQuery Highcharts double donut chart (donut within donut)
- Highcharts Donut Chart customization
- Highcharts :Donut chart overlaps data labels
- Highcharts center on x and y axis offset
- Highcharts 7 - Center an Annotation
- How to send an image in C# to client using async method
- how to change color of highcharter candlestick stockchart?
- solution : Manage space between group columns in highchart
- High Charts xAxis first label repeating on all ticks
- Highcharts Display Xaxis plot line
- highcharts multiple line live graph
- Adding highchart organization in reactjs
- Hichcharts - Custom legend css not getting displayed in Print Chart download functionality
- Javascript string as closure function
- How to allow multiple point selections in Highcharts donut chart?
- Chart js line with asp.net
- Highchart Legend's Border
- Highcharts Transition from Column to Spiderweb
- Label position between series in Highcharts polar chart
- How can I automate high charts and graphs using selenium webdriver?
- coloring different parts of a series a different color
- highcharts gets my hour time wrong
- Highcarts: help to create the JSON