I am working with highcharts and would like to disable datalabels on the main graph, but show them in the exported graph. However, if the data is smaller than a certain number, I would like to hide the labels in exported graph as well. I have seen this post on how to manage which datalabels are shown according to height: Highcharts stacked bar chart hide data labels not to overlap. However, I am not sure how to show certain datalabels only in the exported graph. This is my graph: https://jsfiddle.net/er1187/nbjh5jz3/ When I export, I want to hide these datalabels that are not showing properly:
I tried using overflow and crop but was unable to fix the appearance so I would like to hide them.
plotOptions:{
series: {
dataLabels: {
enabled: true,
inside: true,
allowOverlap: false,
crop: true,
overflow: 'none',
}
}
}