ONSvisual / Charts

The official repository of all publication ready ONS charts.
6 stars 2 forks source link

Need to amend the domain calculation. #83

Open Micheal-Slade opened 1 year ago

Micheal-Slade commented 1 year ago

This only gets max value but we should ideally be getting both the min and max value of the array.

if (config.essential.xDomain === "auto") { x.domain([0, d3.max(series, (d) => d3.max(d, (d) => d[1]))]); } else { x.domain([0, config.essential.xDomain[1]]); }

MikeLister commented 1 year ago

Fixed on the line chart and line small multiple