我有一个带有隐藏的主y轴和可见的辅助y轴的堆叠图。我想回收仅由主y轴占据的空间怎么做?谢谢你的帮助。
我有以下代码:
g = new Dygraph(document.getElementById("graph"),
// For possible data formats, see http://dygraphs.com/data.html
// The x-values could also be dates, e.g. "2012/03/15"
"X,Y,Z,S\n" +
"1,0,3,1\n" +
"2,2,6,13\n" +
"3,4,8,11\n" +
"4,6,9,5\n" +
"5,8,9,4\n" +
"6,10,8,7\n" +
"7,12,6,1\n" +
"8,14,3,9\n", {
// options go here. See http://dygraphs.com/options.html
legend: 'always',
animatedZooms: false,
series: {
Y: {
axis: 'y2'
},
Z: {
axis: 'y2'
},
S: {
axis: 'y2'
}
},
//drawYAxis: false,
axes: {
y: {
drawGrid: false,
independentTicks: false
},
y2: {
drawGrid: true,
independentTicks: true
}
},
stackedGraph: true
});