Event handler not firing on Plotly Bar Chart
Summary The core issue is a mismatch between frontend event handling and backend event propagation. Reflex’s rx.plotly component does not automatically forward raw Plotly click events to a Python backend @rx.event handler. Plotly generates events on the client side (JavaScript), but Reflex’s on_click prop expects specific framework-controlled events. The fig.update_layout(clickmode=”event+select”) configuration correctly enables Plotly’s native … Read more