My dataset consists of various years and corresponding numerical values for each year as shown below:
"data":[
["1951","306","27","159","34","82","4"],
["1956","426","41","203","47","119","16"],
["1959","562","67","267","48","148","32"],
["1960","605","76","282","54","157","36"],
["1961","665","88","310","57","168","42"],
["1962","749","116","340","60","189","44"],
["1963","847","140","375","63","215","54"],
...
The first element in each sub-array represents the year. I have set up two coordinate axes based on this data. Now, I am looking to create 6 circle elements for each of these entries. How can I achieve this by modifying the given code snippet?
var circles = svg.selectAll("circle")
.data(data.data)
.enter()
.append("circle");
var circleAttr = circles. //Attributes defined here