0
私はdygraphを初めて使用しました。問題は1つあります.Javascriptを使用してグラフを作成するとき、y軸の負の値がx軸の0の値の上に表示されます。ここダイグラフでx軸の位置を変更するにはどうすればよいですか?
は私のコードである:
g6 = new Dygraph(document.getElementById('smooth-line'),
functionData,
{
labels: ['Year', 'First','Second'],
series: {
First: {
plotter: smoothPlotter,
color: '#26a69a ',
strokeWidth: 2
},
Second: {
plotter: smoothPlotter,
color: '#e57373 ',
strokeWidth: 2
}
},
legend: 'always',
gridLineColor: '#ddd',
//valueRange: [1.0, 30.0],
//yRangePad :[-20.0,20.0]
});
}
このコードの出力は、次のとおり、画像のX軸のよう
y軸の値を-veには、以下でありますどのようにy軸の0の値でx軸の位置を設定するのですか?