https://github.com/eniompw/plotly
Simple JS Bar Chart with Plotly.js
https://github.com/eniompw/plotly
Last synced: 3 months ago
JSON representation
Simple JS Bar Chart with Plotly.js
- Host: GitHub
- URL: https://github.com/eniompw/plotly
- Owner: eniompw
- License: mit
- Created: 2025-01-06T15:01:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T11:41:20.000Z (over 1 year ago)
- Last Synced: 2025-12-27T09:12:35.125Z (6 months ago)
- Language: HTML
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plotly
## Simple JS Bar Chart with Plotly.js

``` HTML
const data = [{
x:["Italy", "France", "Spain", "USA", "Argentina"],
y:[55, 49, 44, 24, 15],
type:"bar",
marker: {color:"blue"}
}];
const layout = {title:"World Wide Wine Production"};
Plotly.newPlot("myPlot", data, layout);
```
* [W3 Plotly](https://www.w3schools.com/js/js_graphics_plotly.asp)
* [W3 Plotly HTML](https://www.w3schools.com/js/tryit.asp?filename=tryplotly_bars)