Black Lives Matter. Please consider donating to Black Girls Code today.

Plotly Event Handlers in Zeppelin

Hi guys,

I am trying to run some examples in Zeppelin. For example, I tried the double_click_event case shown in
https://plotly.com/javascript/plotlyjs-events/#double-click-event inside the code below

<head>
  <!-- Plotly.js -->
  <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>

<body>
  
  <div id="myDiv" style="width: 800px; height: 500px;"><!-- Plotly chart will be drawn inside this DIV --></div>
  <script>
    <!-- JAVASCRIPT CODE GOES HERE -->
  </script>
</body>

The problem is that after the first “reaction” nothing happens (only the default click event). Could you tell me why?

Can anyone help me to solve this problem? :frowning:
It’s like after the first reaction the (overridden) default functions come back and the customized ones stop working. So weird :confounded:

I noticed that the problem raises after the Plotly.restyle :confused: