d3.csv for floats

287 views
Skip to first unread message

Jim Gwilliam

unread,
May 23, 2013, 1:35:20 AM5/23/13
to d3...@googlegroups.com
I'm having an issue with what I expect should be an otherwise simple problem using d3.csv.

I can load a simple data set like this...

Team offense defense Color1 Color2
arizona 110 347 #000060 #C41E3A
arizona_st 277 496 #FFD700 #800000
california 119 387 #1B1E41 #F5B729

and I have no problem getting this to display: link

But when I use this dataset...

team c1 c2 conf n_losses n_wins win_pct TD_int_ratio_o TD_o 
alabama #990000 #F7F7F7 SEC 1 13 0.93 10.33 5.07

which has about 60 columns wide.....

I get nothing to show up except the axes, and I get an error saying "Port error: Could not establish connection. Receiving end does not exist."
Error: Invalid value for <circle> attribute cx="NaN"
Error: Invalid value for <circle> attribute cy="NaN"

Why am I getting this error?  I thought maybe it was because some numbers are floats here, but I tried with the two columns that are integers and get the same problem.

Any ideas?


Jim Gwilliam

unread,
May 23, 2013, 1:46:59 AM5/23/13
to d3...@googlegroups.com
Disregard.  I'm such a noob.  Spaced in the csv header.  SO dumb.
Reply all
Reply to author
Forward
0 new messages