change marker border color plotly 1

change marker border color plotly

#Works for plotly graph_objects and plotly express
fig.update_traces(marker_line_color('rgb(0, 2, 1)'))

Here is what the above code is Doing:
1. We’re using the fig.update_traces() method to update the traces of the figure.
2. We’re using the marker_line_color() method to update the marker line color of the traces.
3. We’re passing the color code ‘rgb(0, 2, 1)’ to the marker_line_color() method.

Similar Posts