-
Notifications
You must be signed in to change notification settings - Fork 0
/
scriptGraph.js
88 lines (79 loc) · 1.35 KB
/
scriptGraph.js
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
var trace1 = {
x:['P', 'L', 'C'],
y: [90, 40, 60],
type: 'bar',
name: 'Place'
};
var trace2 = {
x:['H', 'LD', 'R'],
y: [10, 80, 45],
type: 'bar',
name: 'Holder'
};
var data = [trace1, trace2];
var layout = {
title: '',
showlegend: false,
autosize: false,
width: 300,
height: 200,
margin: {
l: 25,
r: 15,
b: 20,
t: 20,
pad: 4
}};
Plotly.newPlot('graph1', data, layout, {displayModeBar: false});
var trace3 = {
x: [1, 2, 3, 4],
y: [10, 15, 13, 17],
type: 'scatter'
};
var trace4 = {
x: [1, 2, 3, 4],
y: [16, 5, 11, 9],
type: 'scatter'
};
var data = [trace3, trace4];
var layout = {
title: '',
showlegend: false,
autosize: false,
width: 300,
height: 200,
margin: {
l: 25,
r: 15,
b: 20,
t: 20,
pad: 4
}};
Plotly.newPlot('graph2', data, layout, {displayModeBar: false});
var trace5 = {
x:['15s', '32r', '78f'],
y: [70, 57, 30],
type: 'bar',
name: 'Place'
};
var trace6 = {
x:['80z', '24x', '67y'],
y: [15, 74, 36],
type: 'bar',
name: 'Holder'
};
var data = [trace5, trace6];
var layout = {
title: '',
showlegend: false,
autosize: false,
width: 300,
height: 200,
margin: {
l: 25,
r: 15,
b: 20,
t: 20,
pad: 4
}};
Plotly.newPlot('graph3', data, layout, {displayModeBar: false});