ONSvisual / Charts

The official repository of all publication ready ONS charts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto x-domain calculations are sometimes wrong

MikeLister opened this issue · comments

e.g. in sm bar with line it has too many sets of brackets. Fixed here:

			//x domain is the maximum out of the value and the reference value
			Math.max(d3.max(graphic_data.map(({ value }) => Number(value))),
				d3.max(graphic_data.map(({ ref }) => Number(ref))))