Creating a proportional dot graph: grouping data

Hi All,

I have been stuck on this for a while and I would like some help if possible!

The goal: I want to group the data by year using dot plot. I always want the size of the dot to represent the number of values.(Something like a propotional sized dot mark). Iv tried group transform but that doesnt seem to work.

Iv used d3.nest to group the data by year. The challenge is turning that into a dot mark plot…

If you have any suggestion, I would be grateful. Thank you! :sweat_smile:

here’s a suggestion:, Plot.groupX({r:“count”}, {x: “date”})).plot({x: {type:“linear”}})

also, instead of the deprecated d3.nest, you could use, d =>

Thank you!