Choropleth Plot map: is there a way to apply Jenks classification?

I have built my first Observable choropleth map, and I’m really proud of it.

In the desktop software I use, QGIS, it is possible to color maps by choosing a palette and a classification method. One of these is Jenks.

There, in my OBS map, with such large ranges of values (between min and max), I’ve applied a logarithmic scale.
But the groups of similar polygons are not visible well, which I would have using a method like Jenks.

Is there to apply something similar, using Plot.geo?

Thank you for this great great library

Plot doesn’t offer Jenks breaks built-in, but you can definitely add them; I’ve sent you a suggestion in Comparing PNRR - mappa localizzazioni progetti comunali to PNRR - mappa localizzazioni progetti comunali | Observable

It builds up on the implementation by Tom McWright that I found on—there might be a better way.

1 Like

Wow really useful, thank you very much!

Is there a way to create a copy of your version, without merge it in my notebook?

I would like to keep copies of both and study a bit.

Thank you

There are several ways to do this. For example maybe you can merge it, fork your notebook (with the new code), then revert the changes in your original notebook?