ChartAct / web /Plotly /bar /chart_0092_bar.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
2.83 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="e5063c8c-2e0f-42e9-8f28-a9f3139dd933" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "e5063c8c-2e0f-42e9-8f28-a9f3139dd933",
"data": [
{
"hovertemplate": "variable=gold<br>nation=%{x}<br>value=%{y}<extra></extra>",
"legendgroup": "gold",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "gold",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [
"South Korea",
"China",
"Canada"
],
"xaxis": "x",
"y": [24,10,9],
"yaxis": "y",
"type": "bar"
},
{
"hovertemplate": "variable=silver<br>nation=%{x}<br>value=%{y}<extra></extra>",
"legendgroup": "silver",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "silver",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [
"South Korea",
"China",
"Canada"
],
"xaxis": "x",
"y": [13,15,12],
"yaxis": "y",
"type": "bar"
},
{
"hovertemplate": "variable=bronze<br>nation=%{x}<br>value=%{y}<extra></extra>",
"legendgroup": "bronze",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "bronze",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [
"South Korea",
"China",
"Canada"
],
"xaxis": "x",
"y": [11,8,12],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "nation"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "value"
}
},
"legend": {
"title": {
"text": "variable"
},
"tracegroupgap": 0
},
"title": {
"text": "Wide-Form Input"
},
"barmode": "relative",
"autosize": true
},
"config": {
"responsive": true
}
}
</script>
<script src="chart_0092_bar.inline01.js"></script>
</div>
</body>
</html>