How can I hide the legend for choropleth chart?
See original GitHub issueI have checked the parameters for the choropleth()
function. However can’t figure out how to disable the legend. Is there any way to do that?
Many thanks!
m.choropleth(
geo_data, data=None, columns=None, key_on=None, threshold_scale=None, fill_color='blue',
fill_opacity=0.6, line_color='black', line_weight=1, line_opacity=1, name=None, legend_name='',
topojson=None, reset=False, smooth_factor=None, highlight=None)
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Is it possible to hide the legend on Choropleth Maps?
I think charting.legend.placement is not the right option to use for a choropleth map. Using simpleXML in Splunk UI, I successfully used <option...
Read more >how to hide python folium choropleth legend - Stack Overflow
Explaining the solution briefly, the branca color map is first removed to then be re-added to the map binded to the choropleth layer...
Read more >Show or hide a chart legend or data table - Microsoft Support
Show or hide a legend · Click the chart in which you want to show or hide a legend. This displays the Chart...
Read more >How to hide the colorbar and legend in Plotly Express?
In this article, we will learn how to hide the colorbar and legend in plotly express. Here we will discuss two different method...
Read more >Legends in Python - Plotly
Users may show or hide traces by clicking or double-clicking on their associated legend item. Traces that support legend items also support the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found a slight variation of Conengmo comment works. Delete key in
choropleth._children
before adding tom
:It’s a bit of a hack, but you can delete the color scale after it was created:
Why do you want to hide the legend? We should decide if this should be added as an argument.