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