ChartAct / web /Plotly /bar /chart_0107_bar.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
2.06 kB
<html>
<head><meta charset="utf-8" /><style>html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }.plotly-graph-div { width: 100vw !important; height: 100vh !important; }</style></head>
<body>
<div>
<script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
<script charset="utf-8" src="plotly.min.js"></script>
<div id="baff0951-b105-4acc-83e1-6bde021b5259" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "baff0951-b105-4acc-83e1-6bde021b5259",
"data": [
{
"name": "New York",
"offsetgroup": "USA",
"x": [
"Q1",
"Q2",
"Q3",
"Q4"
],
"y": [
150,
200,
250,
300
],
"type": "bar"
},
{
"name": "Boston",
"offsetgroup": "USA",
"x": [
"Q1",
"Q2",
"Q3",
"Q4"
],
"y": [
180,
220,
270,
320
],
"type": "bar"
},
{
"name": "Montreal",
"offsetgroup": "Canada",
"x": [
"Q1",
"Q2",
"Q3",
"Q4"
],
"y": [
130,
170,
210,
260
],
"type": "bar"
},
{
"name": "Toronto",
"offsetgroup": "Canada",
"x": [
"Q1",
"Q2",
"Q3",
"Q4"
],
"y": [
160,
210,
260,
310
],
"type": "bar"
}
],
"layout": {
"barmode": "stack",
"title": {
"text": "Quarterly Sales by City, Grouped by Country"
},
"xaxis": {
"title": {
"text": "Quarter"
}
},
"yaxis": {
"title": {
"text": "Sales"
}
},
"autosize": true
},
"config": {
"responsive": true
}
}
</script>
<script src="chart_0107_bar.inline01.js"></script>
</div>
</body>
</html>