有没有办法在Highcharts中将系列推到最前面而不颠倒该系列的顺序?
在我的代码中,我使用了:
$('#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: ' €'
}
}]
});
这将产生一个带有两个y轴的图表,其中该线显示在该列下。我想在列上放置一行(如z-index)。但是,我找不到执行此操作的方法。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句