Hi manigandan,
Unfortunately such functionality doesn't exist right now, fort size of data labels can't be changed dynamically. If you would like to see such feature then I highly encourage you to leave your feedback on Highcharts user voice (
https://highcharts.uservoice.com/forums ... script-api), and to create feature request on github.
Few things that could potentially help:
- Adjust your exported chart size. In your first example some of your labels aren't exported because they don't have enough space not only vertically but also horizontally,
- Slightly reduce data labels padding. By default the padding is larger than required to not overlap labels. You can try to reduce it by few px.
- Consider reducing number of data labels. Perhaps some of them aren't that important and you could either disable them completely or show conditionally based on some criteria.
Let me know if you have any further questions.
Best regards!