/
styling.html
43 lines (32 loc) · 903 Bytes
/
styling.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
<head>
<script src="https://cdn.plot.ly/plotly-2.4.2.min.js"></script>
</head>
<body>
<div>
<h1>Hello!</h1>
</div>
<div>
Let's make some plotly charts.
</div>
<div id="tester" style="width:600px;height:250px;"></div>
<div>This is below the chart.</div>
<script>
{{/* Needs to be below the div */}}
var data = [
{
x: ['giraffes', 'orangutans', 'monkeys'],
y: [20, 14, 23],
type: 'bar'
}
];
var layout = {
title:'My Beautiful Chart',
font: {
family: 'Courier New, monospace',
size: 18,
color: '#7f7f7f'
}
};
Plotly.newPlot('tester', data, layout);
</script>
</body>