JSFiddle - React, Tailwind, and code Playground

by David Underwood

HTML

<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<div id="boxarea"></div>

CSS

#boxarea {
  width: 300px;
  height: 300px;;
}

JavaScript

var data = [
  {
    y: [0, 1, 1, 2, 3, 5, 8, 13, 21],
   // boxpoints: 'all',
   // jitter: 0.3,
   // pointpos: -1.8,
    type: 'box'
  }
];

Plotly.newPlot('boxarea', data);