ChartAct / web /Plotly /bar /chart_0094_bar.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
3.2 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="7be45013-6a96-4719-a2ee-2389954a1dc5" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "7be45013-6a96-4719-a2ee-2389954a1dc5",
"data": [
{
"customdata": [[69.12,10039.59564],[70.33,10949.64959],[70.93,12217.22686],[71.1,14526.12465],[71.93,16788.62948],[73.49,18334.19751],[74.74,19477.00928],[76.32,21888.88903],[77.56,23424.76683],[78.83,26997.93657],[80.37,30687.75473],[81.235,34435.367439999995]],
"hovertemplate": "country=Australia<br>year=%{x}<br>population of Oceania=%{y}<br>lifeExp=%{customdata[0]}<br>gdpPercap=%{customdata[1]}<extra></extra>",
"legendgroup": "Australia",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "Australia",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [1952,1957,1962,1967,1972,1977,1982,1987,1992,1997,2002,2007],
"xaxis": "x",
"y": [8691212,9712569,10794968,11872264,13177000,14074100,15184200,16257249,17481977,18565243,19546792,20434176],
"yaxis": "y",
"type": "bar"
},
{
"customdata": [[69.39,10556.57566],[70.26,12247.39532],[71.24,13175.678],[71.52,14463.918930000002],[71.89,16046.03728],[72.22,16233.7177],[73.84,17632.4104],[74.32,19007.19129],[76.33,18363.32494],[77.55,21050.41377],[79.11,23189.80135],[80.204,25185.00911]],
"hovertemplate": "country=New Zealand<br>year=%{x}<br>population of Oceania=%{y}<br>lifeExp=%{customdata[0]}<br>gdpPercap=%{customdata[1]}<extra></extra>",
"legendgroup": "New Zealand",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "New Zealand",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"x": [1952,1957,1962,1967,1972,1977,1982,1987,1992,1997,2002,2007],
"xaxis": "x",
"y": [1994794,2229407,2488550,2728150,2929100,3164900,3210650,3317166,3437674,3676187,3908037,4115771],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "year"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "population of Oceania"
}
},
"legend": {
"title": {
"text": "country"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"barmode": "relative",
"autosize": true
},
"config": {
"responsive": true
}
}
</script>
<script src="chart_0094_bar.inline01.js"></script>
</div>
</body>
</html>