Skip to content

Commit f6c2d9f

Browse files
authored
Merge pull request #389 from mojones/master
added legend to choropleth colour map
2 parents b91840f + 0048d4b commit f6c2d9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

folium/folium.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ def style_function(x):
701701
index=color_domain,
702702
vmin=color_domain[0],
703703
vmax=color_domain[-1],
704+
caption=legend_name,
704705
)
705706
self.add_child(color_scale)
706707

0 commit comments

Comments
 (0)