Javascript 使用两个不同的yAxis比例高图定义yAxis值
您好,我有一张高图表,这是一张有两个不同坐标的折线图。 左边一分钟,右边一分钟。 我想“硬编码”左边是这个比例“0%,20%,40%,60%,80%,100%” 这是我的密码Javascript 使用两个不同的yAxis比例高图定义yAxis值,javascript,graphics,highcharts,highstock,Javascript,Graphics,Highcharts,Highstock,您好,我有一张高图表,这是一张有两个不同坐标的折线图。 左边一分钟,右边一分钟。 我想“硬编码”左边是这个比例“0%,20%,40%,60%,80%,100%” 这是我的密码 var chartTot = { chart: { renderTo: 'grafTot', type: 'line', marginBottom: 110, }, legend: { itemDistance:
var chartTot = {
chart: {
renderTo: 'grafTot',
type: 'line',
marginBottom: 110,
},
legend: {
itemDistance: 20,
itemWidth: 190
},
title: {
text: ''
},
plotOptions: {
series: {
marker: {
enabled: false
}
}
},
xAxis: {
categories: $scope.hours
},
yAxis: [{ //1st yAxis
title: {
text: 'Clients %'
},
min: 0, // I want my graphic 0 to 100 but with this i get
max: 100, // 0- 120 because of the second axis
labels: {
format: '{value} %',
},
},
{ //2nd yAxis
title: {
text: 'Minutes'
},
min: 0,
max: 60,
labels: {
format: '{value} min',
style: {
color: Highcharts.getOptions().colors[6]
}
},
opposite: true
}
]
};
我如何定义第一个yAxis刻度并保留第二个动态
非常感谢您应该设置为false像这样的实时演示会很好