Hi. I’m learning D3.js with making it work in React. I made simple bar chart, scatter chart and so on.
Now I have faced a problem with pachinko simulator on my react app. When I run the simulator, ‘yield’ makes an error. How can I apply below observablehq codes in react jsx?
[observablehq codes]
for (let i = 0; i < n; ++i) {
if (i % 5 === 0) yield svg.node();
const cx = x(values[i]);
const cy = height - margin.bottom - dodge(cx) - radius - 1;
Thank you for the reply. I will try to modify code. (I wish I could have d3.js generator function example in HTML. I searched ‘Bl.ocks.org’ but I couldn’t find it.)