ChartAct / web /Plotly /scatter /chart_0073_scatter.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
2.78 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="201bc1df-899e-4145-9dc9-a4e7cf9114af" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "201bc1df-899e-4145-9dc9-a4e7cf9114af",
"data": [
{
"hovertemplate": "medal=gold<br>nation=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "gold",
"marker": {
"color": "#636efa",
"symbol": "circle",
"size": 10
},
"mode": "markers",
"name": "gold",
"orientation": "v",
"showlegend": true,
"x": [
"South Korea",
"China",
"Canada"
],
"xaxis": "x",
"y": [24,10,9],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "medal=silver<br>nation=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "silver",
"marker": {
"color": "#EF553B",
"symbol": "circle",
"size": 10
},
"mode": "markers",
"name": "silver",
"orientation": "v",
"showlegend": true,
"x": [
"South Korea",
"China",
"Canada"
],
"xaxis": "x",
"y": [13,15,12],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "medal=bronze<br>nation=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "bronze",
"marker": {
"color": "#00cc96",
"symbol": "circle",
"size": 10
},
"mode": "markers",
"name": "bronze",
"orientation": "v",
"showlegend": true,
"x": [
"South Korea",
"China",
"Canada"
],
"xaxis": "x",
"y": [11,8,12],
"yaxis": "y",
"type": "scatter"
}
],
"layout": {
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "nation"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "count"
}
},
"legend": {
"title": {
"text": "medal"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"scattermode": "group",
"autosize": true
},
"config": {
"responsive": true
}
}
</script>
<script src="chart_0073_scatter.inline01.js"></script>
</div>
</body>
</html>