File size: 2,642 Bytes
7b52e07 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | <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="055fb9bd-50a9-420f-90bd-d2ba6c96f6c0" class="plotly-graph-div" style="height:100vh; width:100vw;"></div>
<script type="text/plain" data-chart-inline="true">
{
"library": "Plotly",
"containerId": "055fb9bd-50a9-420f-90bd-d2ba6c96f6c0",
"data": [
{
"hovertemplate": "country=%{x}<br>pop=%{y}<extra></extra>",
"legendgroup": "",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "",
"orientation": "v",
"showlegend": false,
"textposition": "outside",
"texttemplate": "%{y:.2s}",
"x": [
"Albania",
"Austria",
"Belgium",
"Bosnia and Herzegovina",
"Bulgaria",
"Croatia",
"Czech Republic",
"Denmark",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Ireland",
"Italy",
"Netherlands",
"Norway",
"Poland",
"Portugal",
"Romania",
"Serbia",
"Slovak Republic",
"Slovenia",
"Spain",
"Sweden",
"Switzerland",
"Turkey",
"United Kingdom"
],
"xaxis": "x",
"y": [3600523,8199783,10392226,4552198,7322858,4493312,10228744,5468120,5238460,61083916,82400996,10706290,9956108,4109086,58147733,16570613,4627926,38518241,10642836,22276056,10150265,5447502,2009245,40448191,9031088,7554661,71158647,60776238],
"yaxis": "y",
"type": "bar",
"textfont": {
"size": 12
},
"cliponaxis": false,
"textangle": 0
}
],
"layout": {
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "country"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "pop"
}
},
"legend": {
"tracegroupgap": 0
},
"title": {
"text": "Controlled text sizes, positions and angles"
},
"barmode": "relative",
"autosize": true
},
"config": {
"responsive": true
}
}
</script>
<script src="chart_0100_bar.inline01.js"></script>
</div>
</body>
</html>
|