Skip to content

Commit 0048d4b

Browse files
committed
added legend to choropleth colour map
1 parent 4e68c72 commit 0048d4b

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
@@ -689,6 +689,7 @@ def style_function(x):
689689
index=color_domain,
690690
vmin=color_domain[0],
691691
vmax=color_domain[-1],
692+
caption=legend_name,
692693
)
693694
self.add_children(color_scale)
694695

0 commit comments

Comments
 (0)