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