ChartAct / web /Plotly /line /chart_0113_line.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
2.47 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="8fb0f495-b5ee-4755-9450-5e8dd521e0fe" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "8fb0f495-b5ee-4755-9450-5e8dd521e0fe",
"data": [
{
"hovertemplate": "country=Australia<br>year=%{x}<br>lifeExp=%{y}<extra></extra>",
"legendgroup": "Australia",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "Australia",
"orientation": "v",
"showlegend": true,
"x": [1952,1957,1962,1967,1972,1977,1982,1987,1992,1997,2002,2007],
"xaxis": "x",
"y": [69.12,70.33,70.93,71.1,71.93,73.49,74.74,76.32,77.56,78.83,80.37,81.235],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "country=New Zealand<br>year=%{x}<br>lifeExp=%{y}<extra></extra>",
"legendgroup": "New Zealand",
"line": {
"color": "#EF553B",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "New Zealand",
"orientation": "v",
"showlegend": true,
"x": [1952,1957,1962,1967,1972,1977,1982,1987,1992,1997,2002,2007],
"xaxis": "x",
"y": [69.39,70.26,71.24,71.52,71.89,72.22,73.84,74.32,76.33,77.55,79.11,80.204],
"yaxis": "y",
"type": "scatter"
}
],
"layout": {
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "year"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "lifeExp"
}
},
"legend": {
"title": {
"text": "country"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"autosize": true
},
"config": {
"responsive": true
}
}
</script>
<script src="chart_0113_line.inline01.js"></script>
</div>
</body>
</html>