ChartAct / web /Plotly /line /chart_0126_line.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
2.99 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="2f311fae-67ea-4cbd-bcc2-dc21908bb77a" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "2f311fae-67ea-4cbd-bcc2-dc21908bb77a",
"data": [
{
"fillpattern": {
"shape": "."
},
"hovertemplate": "nation=South Korea<br>medal=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "South Korea",
"line": {
"color": "#636efa"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "South Korea",
"orientation": "v",
"showlegend": true,
"stackgroup": "1",
"x": [
"gold",
"silver",
"bronze"
],
"xaxis": "x",
"y": [24,13,11],
"yaxis": "y",
"type": "scatter"
},
{
"fillpattern": {
"shape": "x"
},
"hovertemplate": "nation=China<br>medal=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "China",
"line": {
"color": "#EF553B"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "China",
"orientation": "v",
"showlegend": true,
"stackgroup": "1",
"x": [
"gold",
"silver",
"bronze"
],
"xaxis": "x",
"y": [10,15,8],
"yaxis": "y",
"type": "scatter"
},
{
"fillpattern": {
"shape": "+"
},
"hovertemplate": "nation=Canada<br>medal=%{x}<br>count=%{y}<extra></extra>",
"legendgroup": "Canada",
"line": {
"color": "#00cc96"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "Canada",
"orientation": "v",
"showlegend": true,
"stackgroup": "1",
"x": [
"gold",
"silver",
"bronze"
],
"xaxis": "x",
"y": [9,12,12],
"yaxis": "y",
"type": "scatter"
}
],
"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
},
"autosize": true
},
"config": {
"responsive": true
}
}
</script>
<script src="chart_0126_line.inline01.js"></script>
</div>
</body>
</html>