code: function drawLinearTitle(context, options) {
      if (!options.title) return ;
  
      let {isVertical, width, length, baseX, baseY, titleMargin} =
          context.barDimensions;
      let textHeight = options.fontTitleSize * width / 200;
      //noinspection JSUnresolvedFunction
      let textX = round(baseX + (isVertical ? width : length) / 2);
      //noinspection JSUnresolvedFunction
      let textY = round(baseY + titleMargin / 2 -
          (isVertical ? textHeight : textHeight / 2) -
          0.025 * (isVertical ? length : width));
  
      context.save();
      context.textAlign = 'center';
      context.fillStyle = options.colorTitle;
      context.font = drawings.font(options, 'Title', width / 200);
      context.lineWidth = 0;
      context.fillText(options.title, textX, textY, isVertical ? width : length);
  }
docs: /* istanbul ignore next: private, not testable 
  Draws linear gauge title
  
  @param {Canvas2DContext} context
  @param {LinearGaugeOptions} options