JSFiddle - React, Tailwind, and code Playground

HTML

<head>
	<!-- Load plotly.js into the DOM -->
	<script src='https://cdn.plot.ly/plotly-latest.js'></script>
</head>

<body>
	<div id='myDiv'><!-- Plotly chart will be drawn inside this DIV --></div>
</body>

JavaScript

var data = [
    {
        "type": "pie",
        "values": [
            "1",
            "1e-8",
        ],
        "labels": [
            "Number",
            "Much smaller number",
        ],
    }
];

var layout = {
    "title": "Small and big numbers issues",
    "showlegend": true,
  width: 1000,
  height: 400
};

Plotly.newPlot('myDiv', data, layout);