You can apply a log transform to the data first, and then bin that. There’s an example of this in the Plot repo:
Something like this?
Plot.rect(
snitchesWithFollowers.filter((d) => d.likes > 0 && d.retweets > 0),
Plot.bin(
{ fill: "count" },
{ x: (d) => Math.log10(d.likes), y: (d) => Math.log10(d.retweets) }
)
).plot()
1 Like