File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/python/plotly/plotly/figure_factory Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ def _calculations(
382
382
+ "<br>Value: "
383
383
+ str (values [index ])
384
384
)
385
- t_c = [text for poly in fips_polygon_map [f ]]
385
+ t_c = [text for poly in fips_polygon_map [f ]. geoms ]
386
386
x_centroids = x_c + x_centroids
387
387
y_centroids = y_c + y_centroids
388
388
centroid_text = t_c + centroid_text
@@ -853,11 +853,11 @@ def create_choropleth(
853
853
elif df_state ["geometry" ][index ].type == "MultiPolygon" :
854
854
x = [
855
855
poly .simplify (simplify_state ).exterior .xy [0 ].tolist ()
856
- for poly in df_state ["geometry" ][index ]
856
+ for poly in df_state ["geometry" ][index ]. geoms
857
857
]
858
858
y = [
859
859
poly .simplify (simplify_state ).exterior .xy [1 ].tolist ()
860
- for poly in df_state ["geometry" ][index ]
860
+ for poly in df_state ["geometry" ][index ]. geoms
861
861
]
862
862
for segment in range (len (x )):
863
863
x_states = x_states + x [segment ]
You can’t perform that action at this time.
0 commit comments