Plotly.js

PHOTO EMBED

Mon Oct 23 2023 06:04:32 GMT+0000 (Coordinated Universal Time)

Saved by @AbdulazizQht #undefined

<!DOCTYPE html>
<html>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<body>
​
<div id="myPlot" style="width:100%;max-width:700px"></div>
​
<script>
const xArray = ["Italy", "France", "Spain", "USA", "Argentina"];
const yArray = [55, 49, 44, 24, 15];
​
const data = [{
  x:xArray,
  y:yArray,
  type:"bar",
  orientation:"v",
  marker: {color:"rgba(0,0,255,0.6)"}
}];
​
const layout = {title:"World Wide Wine Production"};
​
Plotly.newPlot("myPlot", data, layout);
</script>
​
</body>
</html>
​
content_copyCOPY

https://www.w3schools.com/js/tryit.asp?filename