我使用chart.js之2.0的靜態規模,有時我有一系列走「出規模」等這個/這些系列都沒有在圖表上可見。所以我決定有固定比例。我關於文件中找到:Chartjs 2.0α,如何對y軸
// Object - if specified, allows the user to override the step generation algorithm.
// Contains the following values
// start: // number to start at
// stepWidth: // size of step
// steps: // number of steps
我嘗試:
{
type: "linear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
display: true,
position: "right",
id: "y-axis-2",
// grid line settings
gridLines: {
show: true,
(...)
},
object:{
start: 0, // number to start at
stepWidth: 50, // size of step
steps: 5, // number of steps
},
// label settings
labels: {
show: true,
(...)
}
}
但是y軸-2具有不固定的比例。在哪裏/我應該如何放置這3個代碼行?
2015-09-25之後沒有「覆蓋」。不知道爲什麼... – Soli