-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworld_bank_CO2_emissions_viz.html
56 lines (53 loc) · 2.82 KB
/
world_bank_CO2_emissions_viz.html
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
<!DOCTYPE html>
<head>
<title>World Bank CO2 Emissions Visualizations</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class='tableauPlaceholder' id='viz1625473428277' style='position: relative'><noscript><a href='#'><img
alt='Dashboard 1 '
src='https://public.tableau.com/static/images/CO/CO2EmissionsWorkbook_16226525661190/Dashboard1/1_rss.png'
style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'>
<param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' />
<param name='embed_code_version' value='3' />
<param name='site_root' value='' />
<param name='name' value='CO2EmissionsWorkbook_16226525661190/Dashboard1' />
<param name='tabs' value='no' />
<param name='toolbar' value='yes' />
<param name='static_image'
value='https://public.tableau.com/static/images/CO/CO2EmissionsWorkbook_16226525661190/Dashboard1/1.png' />
<param name='animate_transition' value='yes' />
<param name='display_static_image' value='yes' />
<param name='display_spinner' value='yes' />
<param name='display_overlay' value='yes' />
<param name='display_count' value='yes' />
<param name='language' value='en-US' />
</object>
</div>
<script type='text/javascript'>
var divElement = document.getElementById('viz1625473428277');
var vizElement = divElement.getElementsByTagName('object')[0];
if (divElement.offsetWidth > 800) {
vizElement.style.minWidth = '420px';
vizElement.style.maxWidth = '650px';
vizElement.style.width = '100%';
vizElement.style.minHeight = '587px';
vizElement.style.maxHeight = '887px';
vizElement.style.height = (divElement.offsetWidth * 0.75) + 'px';
}
else if (divElement.offsetWidth > 500) {
vizElement.style.minWidth = '420px';
vizElement.style.maxWidth = '650px';
vizElement.style.width = '100%';
vizElement.style.minHeight = '587px';
vizElement.style.maxHeight = '887px';
vizElement.style.height = (divElement.offsetWidth * 0.75) + 'px';
} else {
vizElement.style.width = '100%';
vizElement.style.height = '727px';
} var scriptElement = document.createElement('script');
scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement);
</script>
</body>
</html>