ChartAct / web /Plotly /bar /chart_0101_bar.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
2.8 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="dcd7f403-3d57-417c-b2b5-befe2a62c695" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "dcd7f403-3d57-417c-b2b5-befe2a62c695",
"data": [
{
"hovertemplate": "nation=South Korea<br>medal=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "South Korea",
"marker": {
"color": "#636efa",
"pattern": {
"shape": "."
}
},
"name": "South Korea",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [
"gold",
"silver",
"bronze"
],
"xaxis": "x",
"y": [24,13,11],
"yaxis": "y",
"type": "bar"
},
{
"hovertemplate": "nation=China<br>medal=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "China",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": "x"
}
},
"name": "China",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [
"gold",
"silver",
"bronze"
],
"xaxis": "x",
"y": [10,15,8],
"yaxis": "y",
"type": "bar"
},
{
"hovertemplate": "nation=Canada<br>medal=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Canada",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": "+"
}
},
"name": "Canada",
"orientation": "v",
"showlegend": true,
"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_0101_bar.inline01.js"></script>
</div>
</body>
</html>