0
如何在畫布上隱藏Y2軸並在全局設置drawYAxis:false時回收空間。左側和右側隱藏了標籤,但在圖的右側仍然未填充〜50px的填充。如預期的那樣,左側(Y1)完全回收。在dygraph中隱藏Y2軸標籤不會回收畫布右側的空間
drawYAxis: false,
series: {
'Altitude': {
axis: 'Y2',
drawYAxis: false <-- this doesn't work.
}
},
axes: {
x: {
axisLabelFormatter: xAxisLabelFormatter,
axisLabelFontSize: 12,
axisLabelColor: "#FFF"
},
y2: {
drawYAxis: false <-- neither does this.
}
},
謝謝。我會放棄它。 – JeffH 2013-05-13 18:09:04