Arun Prasath
Arun Prasath

Reputation: 100

Legend at least one should be active when user clicks in highchart

I am trying to use line chart, where I am using data with line series.

For that purpose I am using the legend. When clicked the legend, the following value will be hidden, and when I click the last one it also gets hidden, in my scenario last value should not get hidden so that at least one should be active.

I have done this in pie chart series but I can't implement this in line chart why?

- [Js Fiddle Pie Chart Demo][1]
- [Js Fiddle Line Chart][2]

Upvotes: 0

Views: 293

Answers (1)

Xavr
Xavr

Reputation: 239

var points = this.chart.series

JSFiddle

Upvotes: 1

Related Questions