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

**URL:** https://talk.observablehq.com/t/choropleth-plot-map-is-there-a-way-to-apply-jenks-classification/7884
**Category:** Help
**Created:** [April 25, 2023, 6:08pm UTC](https://talk.observablehq.com/t/choropleth-plot-map-is-there-a-way-to-apply-jenks-classification/7884 "2023-04-25T18:08:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![aborruso](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/aborruso/32/4334_2.png) [@aborruso](https://talk.observablehq.com/u/aborruso)
#### Post date: [April 25, 2023, 6:08pm UTC](https://talk.observablehq.com/t/choropleth-plot-map-is-there-a-way-to-apply-jenks-classification/7884/1 "2023-04-25T18:08:49Z")

</div>

Hi,  
I have built [my first Observable choropleth map](https://observablehq.com/@aborruso/localizzazioni-pnrrr), 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

---

<div class="post-metadata">

### Author: ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)
#### Post date: [April 25, 2023, 6:35pm UTC](https://talk.observablehq.com/t/choropleth-plot-map-is-there-a-way-to-apply-jenks-classification/7884/2 "2023-04-25T18:35:29Z")

</div>

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](https://observablehq.com/compare/55527646472464fd...4edd3db05d810daf)

It builds up on the implementation by Tom McWright that I found on [https://gist.github.com/tmcw/4977508](https://gist.github.com/tmcw/4977508)—there might be a better way.

---

<div class="post-metadata">

### Author: ![aborruso](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/aborruso/32/4334_2.png) [@aborruso](https://talk.observablehq.com/u/aborruso)
#### Post date: [April 25, 2023, 6:55pm UTC](https://talk.observablehq.com/t/choropleth-plot-map-is-there-a-way-to-apply-jenks-classification/7884/3 "2023-04-25T18:55:27Z")

</div>

> [@Fil](#):
>
> 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](https://observablehq.com/compare/55527646472464fd...4edd3db05d810daf)

Wow really useful, thank you very much!

---

<div class="post-metadata">

### Author: ![aborruso](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/aborruso/32/4334_2.png) [@aborruso](https://talk.observablehq.com/u/aborruso)
#### Post date: [April 25, 2023, 6:59pm UTC](https://talk.observablehq.com/t/choropleth-plot-map-is-there-a-way-to-apply-jenks-classification/7884/4 "2023-04-25T18:59:33Z")

</div>

> [@Fil](#):
>
> 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](https://observablehq.com/compare/55527646472464fd...4edd3db05d810daf)

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

---

<div class="post-metadata">

### Author: ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)
#### Post date: [April 25, 2023, 7:50pm UTC](https://talk.observablehq.com/t/choropleth-plot-map-is-there-a-way-to-apply-jenks-classification/7884/5 "2023-04-25T19:50:36Z")

</div>

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?
