see https://codepen.io/etpinard/pen/GaMqYx?editors=1010 and more examples in https://github.com/plotly/plotly.js/pull/3845: - https://github.com/plotly/plotly.js/pull/3845#discussion_r285290779 - https://codepen.io/etpinard/pen/zQQGbB - https://github.com/plotly/plotly.js/pull/3845/files#r285291339 - https://codepen.io/etpinard/pen/xNNGBg - https://github.com/plotly/plotly.js/pull/3845/files#r285291581 - https://codepen.io/etpinard/pen/OYYVGB Related: - https://github.com/plotly/plotly.js/pull/2028 - https://github.com/plotly/plotly.js/pull/2413