jqplot有一个选项“fillToZero”
seriesDefaults:{ rendererOptions: {fillToZero: true}},
问题是当系列就像图片的蓝色系列从400+开始 所有重要而有趣的数据,即“开发”和“系统测试”几乎都是看不见的。
任何方式“fillToZero”“完成”,以便该系列将从400开始?
我试过了:
series: [{label: 'Done', fillToZero: true}]
但没有成功。
答案 0 :(得分:0)
无论fillToZero
选项如何,y轴刻度都由min
属性控制,因此您可以将其设置为更高的值,以留出更多空间来显示数据的一部分&# 39;实际上正在改变:
stackSeries: true,
seriesDefaults: {
fill: true,
fillToZero: true
},
axes: {
yaxis: {
// hardcoded in this example but in real code you would calculate
// an appropriate value e.g. with underscore/lodash
min: 400
}
}
参见此处的示例: