Trigger click event with python code (without physically click)

Many charts in plotly can response to click event. For example, when clicking on a sector of a Treemap, it will zoom in. I wonder if it is possible to trigger such click event without physically click on the chart. What API can I use?
Many Thanks.