-
Notifications
You must be signed in to change notification settings - Fork 2
/
borough.html
62 lines (56 loc) · 2.13 KB
/
borough.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
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<!-- Plotly.js -->
<meta http-equiv="X-UA-Compatible" content="IE=11" >
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<style>
.container {
padding-right: 25px;
padding-left: 25px;
margin-right: 0 auto;
margin-left: 0 auto;
}
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
</style>
</head>
<body>
<div id="a6c2e29f-5574-4dbf-8355-2a0965db64e7" style="width: 600px; height: 600px;"><!-- Plotly chart will be drawn inside this DIV --></div>
<script type="text/javascript">
var renderPlotly_a6c2e29f55744dbf83552a0965db64e7 = function() {
var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-latest.min'}}) || require;
fsharpPlotlyRequire(['plotly'], function(Plotly) {
var data = [{"type":"bar","x":["Manhattan","Brooklyn","Queens","Bronx","Staten Island"],"y":[163306,105940,94338,38240,14077],"marker":{}}];
var layout = {};
var config = {};
Plotly.newPlot('a6c2e29f-5574-4dbf-8355-2a0965db64e7', data, layout, config);
});
};
if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {
var script = document.createElement("script");
script.setAttribute("src", "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js");
script.onload = function(){
renderPlotly_a6c2e29f55744dbf83552a0965db64e7();
};
document.getElementsByTagName("head")[0].appendChild(script);
}
else {
renderPlotly_a6c2e29f55744dbf83552a0965db64e7();
}
</script>
</body>
</html>