Open Stan-Stani opened 2 years ago
I accidentally wrote
yScale.range([height - padding, padding]); as yScale.range([height - padding], padding);
yScale.range([height - padding, padding]);
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.
yScale
undefined
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?
scale.range
I accidentally wrote
yScale.range([height - padding, padding]);
asyScale.range([height - padding], padding);
No error was thrown and it took me a long time to figure out why my
yScale
was returningundefined
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?