قمت بهذا ولكن يخرج Plotly is not defined
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div id="plotly-div" style="width: 600px; height: 400px"></div>
<h1>hello Ahmed</h1>
<div id="hello">hello</div>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="main.js"></script>
</body>
</html>
وهذه الاخري لجافا
var data = [{x:[phi], y:[h], type: 'curve'}];
var layout = {fileopt : "overwrite", filename : "simple-node-example"};
Plotly.newPlot('plotly-div', data, layout);