✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

How to keep the marker width visually constant?

i dynamically append data to my traces, thus the xaxis range increases and the original marker width visually shrinks. This is because the marker width does not take the axis range into account, being to large on small scale and too tiny when scale too large.
Please how to fix this, eg marker1% of xaxis range?

fig = plg.Figure()

large scale

small scale

the only change was add/remove some data. please how to keep the marker constant width?

well use a callback with figure state/output and a range slider adjusting eg trace 0: fig_in['data'][0]['width'] = 10 ** barwidth