https://misohena.jp/blog/2017-10-26-how-to-use-code-block-of-emacs-org-mode.html

<div id="myplot" style="width:600px;height:400px;"></div>

<script>
  Plotly.newPlot('myplot', [{
    x: [1, 2, 3],
    y: [3, 1, 6],
    type: 'scatter'
  }]);
</script>