Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
147
rated 0 times [  153] [ 6]  / answers: 1 / hits: 18241  / 11 Years ago, thu, may 9, 2013, 12:00:00

I have a line chart with several series. When viewed all at once the chart is confusing, so I would like to have certain series hidden initially.



I know I can programmatically turn off series, but is there a way to do this when initializing the chart?


More From » highcharts

 Answers
124

Believe there is a configuration option for this.



Within Series, set visible = false



The legend will still list the series but greyed out. And the series itself will be hidden in the chart upon initial display.



Example configuration:



series: [{
name: 'HiddenByDefault',
legendIndex: 1,
visible: false,
color: '#4572A7',
type: 'spline',
data: [a, b, c],
tooltip: {
valueSuffix: ' ¥'
}

}

[#78322] Wednesday, May 8, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bobbie

Total Points: 262
Total Questions: 91
Total Answers: 102

Location: Bermuda
Member since Mon, Dec 5, 2022
1 Year ago
;