我使用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