javascript - Maximum call stack size exceeded in plotly 3d scatter plot -
i implementing 3d scatterplot using plotly.js , task working on - change color of dot when hover (or click - not matter) on it. have found example works 2d scatter plot. however, not work 3d scatter plot. after "onhover" event, script starts executing "plotly_onhover
" function infinitely many times, till throws error.
here code working 2d scatter: https://codepen.io/plotly/pen/xgxbrj
and code not working 3d scatter: https://codepen.io/anon/pen/pkewob
the problem in plotly.restyle('mydiv', update, [tn]);
line. suppose calling "plotly_onhover" function again , again. why not happen in 2d scatter plot then?
please, me, @ sea.
wiki
Comments
Post a Comment