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(
382382 + "<br>Value: "
383383 + str (values [index ])
384384 )
385- t_c = [text for poly in fips_polygon_map [f ]]
385+ t_c = [text for poly in fips_polygon_map [f ]. geoms ]
386386 x_centroids = x_c + x_centroids
387387 y_centroids = y_c + y_centroids
388388 centroid_text = t_c + centroid_text
@@ -853,11 +853,11 @@ def create_choropleth(
853853 elif df_state ["geometry" ][index ].type == "MultiPolygon" :
854854 x = [
855855 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
857857 ]
858858 y = [
859859 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
861861 ]
862862 for segment in range (len (x )):
863863 x_states = x_states + x [segment ]
You can’t perform that action at this time.
0 commit comments