I accidentally wrote
yScale.range([height - padding, padding]);
as
yScale.range([height - padding], padding);
No error was thrown and it took me a long time to figure out why my yScale was returning undefined on all inputs.
Could we make scale.range throw an error when more than one argument is present and/or when a scale can't be generated from the given 1st parameter?
I accidentally wrote
yScale.range([height - padding, padding]);as
yScale.range([height - padding], padding);No error was thrown and it took me a long time to figure out why my
yScalewas returningundefinedon all inputs.Could we make
scale.rangethrow an error when more than one argument is present and/or when a scale can't be generated from the given 1st parameter?