forked from umer936/YES-website-teaching
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpage.js
More file actions
45 lines (44 loc) · 732 Bytes
/
webpage.js
File metadata and controls
45 lines (44 loc) · 732 Bytes
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
var layout = {
title: {
text:'Plot Title',
font: {
family: 'Courier New, monospace',
size: 24
},
xref: 'paper',
x: 0.05,
},
paper_bgcolor: "orange",
xaxis: {
title: {
text: 'x Axis Line',
font: {
family: 'Courier New, monospace',
size: 18,
color: '#7f7f7f'
}
},
},
yaxis: {
title: {
text: 'y Axis Line',
font: {
family: 'Courier New, monospace',
size: 18,
color: '#7f7f7f'
}
}
}
};
TESTER = document.getElementById("tester");
Plotly.newPlot(
TESTER,
[
{
x: ['red', 'green', 'orange', 'yellow', 'purple'],
y: [1, 2, 4, 8, 16],
type: 'bar'
}
],
layout
);