需要在相同的时间点缩放双x轴,我还需要在工具提示上显示x和y轴值。怎么做。请在链接
中找到js小提琴中的代码$(function () {
$('#container').highcharts({
chart: {
marginRight: 80, // like left
zoomType: 'xy'
},
navigator: {
enabled:true,
xAxis: {
labels: {
enabled: false
}
}
},
scrollbar: {
enabled: true
},
xAxis: [{
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
}, {
opposite: true,
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
}],
yAxis: [{
lineWidth: 1,
title: {
text: 'Primary Axis'
}
}, {
lineWidth: 1,
opposite: true,
title: {
text: 'Secondary Axis'
}
}],
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
xAxis: 1
}, {
data: [144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2],
yAxis: 1
}]
});
});
在此图表中,如何缩放顶部和底部x轴以及工具提示如何显示两个x轴值