function dataValue(d) {
try {
return d === 'true' ? true : d === 'false' ? false : d === 'null' ? null : !isNaN(d) ? parseFloat(d) : d;
} catch(e) {}
return undefined
}
is returning NaN for a bunch of d values where it should probably return something else, undefined or null probably. Most importantly these values give NaN: '', null (probably the culprit).
is returning
NaN
for a bunch ofd
values where it should probably return something else,undefined
ornull
probably. Most importantly these values giveNaN
:''
,null
(probably the culprit).needs test cases.
yes, blame me.