
          if (showYGridLines) {
            tr.ui.b.drawLine(
                ctx, viewLeft, curViewYPositive, viewRight, curViewYPositive);
          }
        }

        const curViewYNegative = transform.worldYToViewY(-1 * curWorldY);
        if (curViewYNegative <= viewBottom) {
          if (showYAxisLabels) {
            ctx.fillText(roundedUnitValue, viewLeft + AXIS_LABLE_MARGIN_PX,
                curViewYNegative - AXIS_LABLE_MARGIN_PX);
          }
          if (showYGridLines) {
            tr.u