Charts 是否可以将第二个右轴添加到dojo图表?
我需要三个轴:一个在左边,另一个在右边 是否可以将第二个右轴添加到dojo图表?我做了以下操作,但右2轴重叠Charts 是否可以将第二个右轴添加到dojo图表?,charts,dojo,axis,Charts,Dojo,Axis,我需要三个轴:一个在左边,另一个在右边 是否可以将第二个右轴添加到dojo图表?我做了以下操作,但右2轴重叠 chart1.addAxis("py", { vertical : true, fixLower : "major", fixUpper : "major", includeZero : true, leftBottom : false, majorTickStep : Math.round(rateMax * 100) / 1000,
chart1.addAxis("py", {
vertical : true,
fixLower : "major",
fixUpper : "major",
includeZero : true,
leftBottom : false,
majorTickStep : Math.round(rateMax * 100) / 1000,
max : rateMax + 5 * rateMax / 100,
title : isTput?"Mins":"Rate(%)"
}).addPlot("RatePlot", {
type : "Default",
vAxis : "py",
tension : "X",
markers : true,
stroke : {
color : "yellow"
},
fill : "yellow",
animate : true
});
chart1.addAxis("py2", {
vertical : true,
fixLower : "major",
fixUpper : "major",
includeZero : true,
leftBottom : false,
//majorTickStep : Math.round(rateMax * 100) / 1000,
//max : rateMax + 5 * rateMax / 100,
title : "Den"
}).addPlot("DenPlot", {
type : "Default",
vAxis : "py2",
tension : "X",
markers : true,
stroke : {
color : "yellow"
},
fill : "yellow",
animate : true
});
添加新的html,并使用样式设置图形轴旁边的正确位置:
<div id="xlabel2" style="position: absolute; top: 460px; left: 70px;">Label 2</dev>
您可以添加X轴的另一侧,但我不认为可以添加多个,然后一个轴是同一侧。
style: display:none;
display:visible;