Represents ramp up chart with one decimal place
coordinates.push(0, 0);
coordinates.push(initialSleepTime, 0);
}
- coordinates.push(curX + 0.01, curY);
+ coordinates.push(curX, curY);
curX += internalTime;
coordinates.push(curX, curY);
if (curY > destination) {
curY = destination;
}
- coordinates.push(curX + 0.01, curY);
+ coordinates.push(curX, curY);
curX += internalTime;
- coordinates.push(curX + 0.01, curY);
+ coordinates.push(curX, curY);
}
const maxX = tail(coordinates.get().x);
} else {
let curX = 0;
for (let step = 0; step <= steps; step++) {
- coordinates.push(curX + 0.01, destination);
+ coordinates.push(curX, destination);
curX += internalTime;
- coordinates.push(curX + 0.01, destination);
+ coordinates.push(curX, destination);
}
const maxX = tail(coordinates.get().x);
tick: {
format: value => {
value = value || 0;
- return (value).toFixed(0);
+ return (Math.round(value * 10) / 10);
},
count: numTicks - 1,
text: {
