function plotDataLengthBarWidth(props, moreProps) {
	const { widthRatio } = props;
	const { xScale } = moreProps;

	const [l, r] = xScale.range();

	const totalWidth = Math.abs(r - l);
	if (xScale.invert != null) {
		const [dl, dr] = xScale.domain();
		const width = totalWidth / Math.abs(dl - dr);
		return width * widthRatio;
	} else {
		const width = totalWidth / xScale.domain().length;
		return width * widthRatio;
	}
}
Bar width is based on the amount of items in the plot data and the distance between the first and last of those
items.
@param props the props passed to the series.
@param moreProps an object holding the xScale, xAccessor and plotData.
@return {number} the bar width.