Jose Victor
Jose Victor

Reputation: 360

Highchart Disable stackLabels when overflow

Hello i have a chart like in the example http://goo.gl/z4joLo

Try lowering the chart area and note that the total labels overlaps itself. I would like to set stackLabel.enabled property to false (hide total label) when it occurs. How could i do that?

Upvotes: 0

Views: 87

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

You can catch redraw() event, iterate over each stacklabels and check width and position of box. If neighbours overlap, then destroy element.

Upvotes: 1

Related Questions