code: function addLayoutData(props, datasets, index) {
    const xOffset = props.xOffset || 0;
    return datasets[index].map((datum) => {
      const yOffset = getY0(datum, index, datasets) || 0;
      return assign({}, datum, {
        _y0: !(datum._y instanceof Date) ? yOffset : yOffset ? new Date(yOffset) : datum._y,
        _y1:
          datum._y === null
            ? null
            : datum._y instanceof Date
            ? new Date(+datum._y + +yOffset)
            : datum._y + yOffset,
        _x1:
          datum._x === null
            ? null
            : datum._x instanceof Date
            ? new Date(+datum._x + +xOffset)
            : datum._x + xOffset
      });
    });
  }
docs: /* eslint-disable no-nested-ternary