You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to replicate a simple scatter plot, based on this code: http://bl.ocks.org/WilliamQLiu/803b712a4d6efbf7bdb4
I have updated the code to V5 (i.e., replaced d3.scale.linear with d3.scaleLinear, etc.)
I have converted my data from an R data frame to a JSON, eg:
[[0.100, 2.905],[-3.249, 0.550],[1.050, 3.222],[-0.059, -0.537],[-1.089, -0.990],[-2.614, -0.049],[1.168, 1.275],[2.130, 0.176],[0.681, -0.762],[0.275, -0.601], ...];
The code runs, but the circles are off of
I think my circles are in the upper left-hand corner of the plot.
My question is how do I scale this plot (and scale svgs generally) so I can see
the plotted items?
Please forgive my post.
I forgot one of the key points of debugging: "If you found all of the errors and it still doesn' work, you haven't found all of the errors."
As I was reviewing the code, I saw what was wrong and I corrected it. Now all is well.
Cheers--
AB
I am attempting to replicate a simple scatter plot, based on this code:
http://bl.ocks.org/WilliamQLiu/803b712a4d6efbf7bdb4
I have updated the code to V5 (i.e., replaced d3.scale.linear with d3.scaleLinear, etc.)
I have converted my data from an R data frame to a JSON, eg:
[[0.100, 2.905],[-3.249, 0.550],[1.050, 3.222],[-0.059, -0.537],[-1.089, -0.990],[-2.614, -0.049],[1.168, 1.275],[2.130, 0.176],[0.681, -0.762],[0.275, -0.601], ...];
The code runs, but the circles are off of
I think my circles are in the upper left-hand corner of the plot.
My question is how do I scale this plot (and scale svgs generally) so I can see
the plotted items?
I have attached the r2d3 code I used.
TIA
AB
Scatter.txt
The text was updated successfully, but these errors were encountered: