drawYLabel method
Implementation
void drawYLabel(
CanvasRenderingContext2D ctx, int x, int y, double value, int decimals) {
final roundedValue = roundDouble(value, decimals);
ctx
..beginPath()
..moveTo(x, y)
..lineTo(x + style.dashLength, y)
..stroke();
final label = roundedValue.toStringAsFixed(decimals);
ctx.fillText(label, x + style.yLabelIndent, y);
}