Himanshu Soni
Himanshu Soni

Reputation: 364

hide a particular column on xAxis highchart Column Chart

How can i hide/show a praticular column in the Column Chart of Highcharts api. i have a single series.
The column to be hidden lies on the xaxis. For sine Chart, chart.series[4].hide() /show() works fine and for Pie Chart, chart.series[0].data[0].setVisible(false); works fine. But i am not able to figure out the solution for Column Chart. Please Help!

Upvotes: 2

Views: 3442

Answers (1)

Paweł Fus
Paweł Fus

Reputation: 45079

You can use Element.hide() and Element.show(), so for example:

var chart = $("#container").highcharts();
chart.series[0].data[0].graphic.hide();
chart.series[0].data[0].dataLabel.hide();

Upvotes: 4

Related Questions