Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
グラフがあり、すべてのデータがゼロの場合、x軸は中央に配置されます。(jsfiddle)
しかし、私が必要としているのは、次のようにチャートの一番下から始めることです。
HighChartでこれを行うにはどうすればよいですか。
yAxismaxとを設定しminます。
max
min
yAxis: { max: 0.06, min: 0 }
デモ
動的に変更された場合。
function preventZeroLabel() { var axis = this.yAxis[0]; if( -axis.min == axis.max ) { axis.setExtremes(0, 1, true); } } chart: { events: { load: preventZeroLabel, redraw: preventZeroLabel } }