HighCharts série Z index
Est-il un moyen d'apporter une série à l'avant dans Highcharts, sans inverser l'ordre de la série?
Dans mon code, j'ai utilisé:
$('#graf-1').highcharts({
chart: {
zoomType: 'xy'
},
title: {
text: 'Title'
},
subtitle: {
text: 'Source:'
},
xAxis: [{
categories: datax
}],
yAxis: [{ //Primary yAxis
labels: {
format: '{value} €',
style: {
color: '#89A54E'
}
},
title: {
text: eixoy,
style: {
color: '#89A54E'
}
}
}, { //Secondary yAxis
title: {
text: eixoz,
style: {
color: '#4572A7'
}
},
labels: {
format: '{value} %',
style: {
color: '#4572A7'
}
},
opposite: true
}],
tooltip: {
shared: true
},
legend: {
layout: 'vertical',
align: 'left',
x: 120,
verticalAlign: 'top',
y: 100,
floating: true,
backgroundColor: '#FFFFFF'
},
series: [{
name: eixoz,
color: '#4572A7',
type: 'line',
yAxis: 1,
data: dataz,
tooltip: {
valueSuffix: ' %'
}
}, {
name: eixoy,
color: '#89A54E',
type: 'column',
data: datay,
tooltip: {
valueSuffix: ' €'
}
}]
});
C'est la production d'un tableau de deux axe y, où la ligne est affichée dans la colonne. Je veux avoir la ligne sur la colonne (comme le z-index). Cependant, je ne trouve pas la méthode pour le faire.
OriginalL'auteur Nuno Nogueira | 2013-11-05
Vous devez vous connecter pour publier un commentaire.
Highcharts est une zIndex propriété.
Voir ce violon.
OriginalL'auteur Mark