Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
90
rated 0 times [  91] [ 1]  / answers: 1 / hits: 24189  / 11 Years ago, tue, november 5, 2013, 12:00:00

Is there a way to bring a series to front in Highcharts without reversing the order of the series?


In my code, I've used:


$('#graf-1').highcharts({
chart: {
zoomType: 'xy'
},


More From » highcharts

 Answers
4

Highcharts has a zIndex property.



       series: [{
name: eixoz,
color: '#4572A7',
type: 'line',
yAxis: 1,
data: dataz,
tooltip: {
valueSuffix: ' %'
},
zIndex: 2

}, {
name: eixoy,
color: '#89A54E',
type: 'column',
data: datay,
tooltip: {
valueSuffix: ' €'
},
zIndex: 1
}]


See this fiddle.


[#74490] Monday, November 4, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rayvenc

Total Points: 666
Total Questions: 125
Total Answers: 99

Location: Northern Ireland
Member since Mon, Nov 14, 2022
2 Years ago
;