Shouldn't it be considered a bug in Observable? Attaching a svg:circle element to a DIV is not getting us anywhere. Returning an inspector view would be more interesting. (Also the example would "work" better, if it showed anything, with r=3 or something.)
i wanted to explicitly avoid colliding with any likely variable name in your notebook, so that people wouldn't be misled into thinking it knows anything about them, and would understand they'll have to change it
ah yeah thanks!! i stole this from d3.autoType without realizing that's meant just for strings, whoops! hence this PR https://github.com/d3/d3-dsv/pull/78
this is great start. I found myself wanting to have some numeric fields be categorical (i.e. year, fips code). I tried Math.log on various datasets but I found it to be too aggressive. len / 2 is a little too liberal as well, ce la vie
sqrt? math.log(n) * 2? yeah, since this was just for surfacing decent suggestions, i felt it was ok to start with the better bets and ignore categorical numbers, but i agree w/ you