So what I want is to set the edge color of a specific polygon that meets one condition. May be df.index=1(or any index) or df[df[ācolumn_nameā]=='any_cell_value"] but Iām not being able to do it.
I tried out this:
fig.for_each_trace(
lambda trace: trace.update(marker_line_color="green") if selector==dict(column_name='any_cell_value') else (),
)
But it added green borders to all polygons. And I also tried out add_choroplethmapbox but Iām getting several errors.
Thanks for your answer but I canāt totally understand the first part of the solution (the JavaScript snippet part) and how itās integrated with the Dash app. Iām new at dashboarding with python and Iām kinda lost!
@Emil btw, what I want is to set the color of the edge, not the color of the entire polygon
and i also wrote some docs on this kind of use case,
You can change any style property of the polygon, to change the edge color i guess you could keep the fillColor constant and change the color dynamically.