Skip to content

help for Choropleth(fill_color=...) is missing values #1765

Closed

Description

@FlorinAndrei

Describe the bug

https://github.com/python-visualization/folium/blob/main/folium/features.py#L1372

Quote:

fill_color: string, optional
    Area fill color, defaults to blue. Can pass a hex code, color name,
    or if you are binding data, one of the following color brewer palettes:
    'BuGn', 'BuPu', 'GnBu', 'OrRd', 'PuBu', 'PuBuGn', 'PuRd', 'RdPu',
    'YlGn', 'YlGnBu', 'YlOrBr', and 'YlOrRd'.

This is incomplete. You can also do Choropleth(fill_color='viridis') and it works just fine.

So it looks like it can use other things from branca.colormap but I'm not sure what is the full extent of options that Choropleth would accept.

Expected behavior

The help should describe the actual behavior there. I would propose a PR, but again, I am not sure what are all the options that are acceptable there.

Activity

  1. Conengmo commented on May 23, 2023

    @Conengmo
    Member
  2. Conengmo commented on May 23, 2023

    @Conengmo
    Member

    Thanks for pointing that out! I’m not sure at the moment what options would work, we’d need someone to look into that. We can definitely update the documentation when we know. Ideally we’d not necessarily list all the options here, but could refer to Branca.

  3. FlorinAndrei commented on May 23, 2023

    @FlorinAndrei
    Author

    Ideally we’d not necessarily list all the options here, but could refer to Branca.

    Sounds good, thanks.

  4. added
    documentationDocumentation about a certain topic should be added
    on Sep 8, 2023
  5. prodduturisindhurdy commented on Mar 10, 2026

    @prodduturisindhurdy
    Contributor

    Hi, I'd like to work on this. I'll update the docstring to mention branca colormaps as suggested. This will be my first open source contribution!

  6. hansthen commented on Apr 12, 2026

    @hansthen
    Collaborator

    Fine and thanks in advance. Please read: https://github.com/python-visualization/folium/blob/main/.github/CONTRIBUTING.md to get you started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation about a certain topic should be added

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy