Skip to content

Commit aa54e65

Browse files
committed
Change graphing library for node view
Server view coming soon
1 parent e98e7d5 commit aa54e65

File tree

5 files changed

+453
-187
lines changed

5 files changed

+453
-187
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@ Bootstrap - [license](https://github.com/twbs/bootstrap/blob/master/LICENSE) - [
3636

3737
BootStrap Notify - [license](https://github.com/mouse0270/bootstrap-notify/blob/master/LICENSE) - [homepage](http://bootstrap-notify.remabledesigns.com)
3838

39+
D3.js - [license](https://github.com/mbostock/d3/blob/master/LICENSE) - [homepage](https://d3js.org/)
40+
3941
FontAwesome - [license](http://fontawesome.io/license/) - [homepage](http://fontawesome.io)
4042

4143
FuelUX - [license](https://github.com/ExactTarget/fuelux/blob/master/LICENSE) - [homepage](http://getfuelux.com)
4244

4345
jQuery - [license](https://github.com/jquery/jquery/blob/master/LICENSE.txt) - [homepage](http://jquery.com)
4446

47+
MetricsGraphics.js - [license](https://github.com/mozilla/metrics-graphics/blob/master/LICENSE) - [homepage](http://metricsgraphicsjs.org/)
48+
4549
Socket.io - [license](https://github.com/socketio/socket.io/blob/master/LICENSE) - [homepage](http://socket.io)
4650

4751
SweetAlert - [license](https://github.com/t4t5/sweetalert/blob/master/LICENSE) - [homepage](http://t4t5.github.io/sweetalert/)

public/css/metricsgraphics.css

Lines changed: 368 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,368 @@
1+
.mg-active-datapoint {
2+
fill: black;
3+
font-size: 0.9rem;
4+
font-weight: 400;
5+
opacity: 0.8;
6+
}
7+
8+
.mg-area1-color {
9+
fill: #0000ff;
10+
}
11+
12+
.mg-area2-color {
13+
fill: #05b378;
14+
}
15+
16+
.mg-area3-color {
17+
fill: #db4437;
18+
}
19+
20+
.mg-area4-color {
21+
fill: #f8b128;
22+
}
23+
24+
.mg-area5-color {
25+
fill: #5c5c5c;
26+
}
27+
28+
.mg-barplot rect.mg-bar {
29+
shape-rendering: auto;
30+
fill: #b6b6fc;
31+
}
32+
33+
.mg-barplot rect.mg-bar.active {
34+
fill: #9e9efc;
35+
}
36+
37+
.mg-barplot .mg-bar-prediction {
38+
fill: #5b5b5b;
39+
}
40+
41+
.mg-barplot .mg-bar-baseline {
42+
stroke: #5b5b5b;
43+
stroke-width: 2;
44+
}
45+
46+
.mg-baselines line {
47+
opacity: 1;
48+
shape-rendering: auto;
49+
stroke: #b3b2b2;
50+
stroke-width: 1px;
51+
}
52+
53+
.mg-baselines text {
54+
fill: black;
55+
font-size: 0.9rem;
56+
opacity: 0.6;
57+
stroke: none;
58+
}
59+
60+
.mg-baselines-small text {
61+
font-size: 0.6rem;
62+
}
63+
64+
.mg-header {
65+
cursor: default;
66+
font-size: 1.2rem;
67+
}
68+
69+
.mg-header .mg-chart-description {
70+
fill: #ccc;
71+
font-family: FontAwesome;
72+
font-size: 1.2rem;
73+
}
74+
75+
.mg-points circle {
76+
opacity: 0.65;
77+
}
78+
79+
.mg-popover {
80+
font-size: 0.95rem;
81+
}
82+
83+
.mg-popover-content {
84+
cursor: auto;
85+
line-height: 17px;
86+
}
87+
88+
.mg-data-table {
89+
margin-top: 30px;
90+
}
91+
92+
.mg-data-table thead tr th {
93+
border-bottom: 1px solid darkgray;
94+
cursor: default;
95+
font-size: 1.1rem;
96+
font-weight: normal;
97+
padding: 5px 5px 8px 5px;
98+
text-align: right;
99+
}
100+
101+
.mg-data-table thead tr th .fa {
102+
color: #ccc;
103+
padding-left: 4px;
104+
}
105+
106+
.mg-data-table thead tr th .popover {
107+
font-size: 1rem;
108+
font-weight: normal;
109+
}
110+
111+
.mg-data-table .secondary-title {
112+
color: darkgray;
113+
}
114+
115+
.mg-data-table tbody tr td {
116+
margin: 2px;
117+
padding: 5px;
118+
vertical-align: top;
119+
}
120+
121+
.mg-data-table tbody tr td.table-text {
122+
opacity: 0.8;
123+
padding-left: 30px;
124+
}
125+
126+
.mg-y-axis line.mg-extended-y-ticks {
127+
opacity: 0.4;
128+
}
129+
130+
.mg-x-axis line.mg-extended-x-ticks {
131+
opacity: 0.4;
132+
}
133+
134+
.mg-histogram .axis path,
135+
.mg-histogram .axis line {
136+
fill: none;
137+
opacity: 0.7;
138+
shape-rendering: auto;
139+
stroke: #ccc;
140+
}
141+
142+
.mg-histogram .mg-bar rect {
143+
fill: #b6b6fc;
144+
shape-rendering: auto;
145+
}
146+
147+
.mg-histogram .mg-bar rect.active {
148+
fill: #9e9efc;
149+
}
150+
151+
.mg-least-squares-line {
152+
stroke: red;
153+
stroke-width: 1px;
154+
}
155+
156+
.mg-lowess-line {
157+
fill: none;
158+
stroke: red;
159+
}
160+
161+
.mg-line1-color {
162+
stroke: #4040e8;
163+
}
164+
165+
.mg-hover-line1-color {
166+
fill: #4040e8;
167+
}
168+
169+
.mg-line2-color {
170+
stroke: #05b378;
171+
}
172+
173+
.mg-hover-line2-color {
174+
fill: #05b378;
175+
}
176+
177+
.mg-line3-color {
178+
stroke: #db4437;
179+
}
180+
181+
.mg-hover-line3-color {
182+
fill: #db4437;
183+
}
184+
185+
.mg-line4-color {
186+
stroke: #f8b128;
187+
}
188+
189+
.mg-hover-line4-color {
190+
fill: #f8b128;
191+
}
192+
193+
.mg-line5-color {
194+
stroke: #5c5c5c;
195+
}
196+
197+
.mg-hover-line5-color {
198+
fill: #5c5c5c;
199+
}
200+
201+
.mg-line-legend text {
202+
font-size: 0.9rem;
203+
font-weight: 300;
204+
stroke: none;
205+
}
206+
207+
.mg-line1-legend-color {
208+
color: #4040e8;
209+
fill: #4040e8;
210+
}
211+
212+
.mg-line2-legend-color {
213+
color: #05b378;
214+
fill: #05b378;
215+
}
216+
217+
.mg-line3-legend-color {
218+
color: #db4437;
219+
fill: #db4437;
220+
}
221+
222+
.mg-line4-legend-color {
223+
color: #f8b128;
224+
fill: #f8b128;
225+
}
226+
227+
.mg-line5-legend-color {
228+
color: #5c5c5c;
229+
fill: #5c5c5c;
230+
}
231+
232+
.mg-main-area-solid svg .mg-main-area {
233+
fill: #ccccff;
234+
opacity: 1;
235+
}
236+
237+
.mg-markers line {
238+
opacity: 1;
239+
shape-rendering: auto;
240+
stroke: #b3b2b2;
241+
stroke-width: 1px;
242+
}
243+
244+
.mg-markers text {
245+
fill: black;
246+
font-size: 0.8rem;
247+
opacity: 0.6;
248+
}
249+
250+
.mg-missing-text {
251+
opacity: 0.9;
252+
}
253+
254+
.mg-missing-background {
255+
stroke: blue;
256+
fill: none;
257+
stroke-dasharray: 10,5;
258+
stroke-opacity: 0.05;
259+
stroke-width: 2;
260+
}
261+
262+
.mg-missing .mg-main-line {
263+
opacity: 0.1;
264+
}
265+
266+
.mg-missing .mg-main-area {
267+
opacity: 0.03;
268+
}
269+
270+
path.mg-main-area {
271+
opacity: 0.2;
272+
stroke: none;
273+
}
274+
275+
path.mg-confidence-band {
276+
fill: #ccc;
277+
opacity: 0.4;
278+
stroke: none;
279+
}
280+
281+
path.mg-main-line {
282+
fill: none;
283+
opacity: 0.8;
284+
stroke-width: 1.1px;
285+
}
286+
287+
.mg-points circle {
288+
fill-opacity: 0.4;
289+
stroke-opacity: 1;
290+
}
291+
292+
circle.mg-points-mono {
293+
fill: #0000ff;
294+
stroke: #0000ff;
295+
}
296+
297+
/* a selected point in a scatterplot */
298+
.mg-points circle.selected {
299+
fill-opacity: 1;
300+
stroke-opacity: 1;
301+
}
302+
303+
.mg-voronoi path {
304+
fill: none;
305+
pointer-events: all;
306+
stroke: none;
307+
stroke-opacity: 0.1;
308+
}
309+
310+
.mg-x-rug-mono,
311+
.mg-y-rug-mono {
312+
stroke: black;
313+
}
314+
315+
.mg-x-axis line,
316+
.mg-y-axis line {
317+
opacity: 1;
318+
shape-rendering: auto;
319+
stroke: #b3b2b2;
320+
stroke-width: 1px;
321+
}
322+
323+
.mg-x-axis text,
324+
.mg-y-axis text,
325+
.mg-histogram .axis text {
326+
fill: black;
327+
font-size: 0.9rem;
328+
opacity: 0.6;
329+
}
330+
331+
.mg-x-axis .label,
332+
.mg-y-axis .label,
333+
.mg-axis .label {
334+
font-size: 0.8rem;
335+
text-transform: uppercase;
336+
font-weight: 400;
337+
}
338+
339+
.mg-x-axis-small text,
340+
.mg-y-axis-small text,
341+
.mg-active-datapoint-small {
342+
font-size: 0.6rem;
343+
}
344+
345+
.mg-x-axis-small .label,
346+
.mg-y-axis-small .label {
347+
font-size: 0.65rem;
348+
}
349+
350+
.mg-european-hours {
351+
}
352+
353+
.mg-year-marker text {
354+
fill: black;
355+
font-size: 0.7rem;
356+
opacity: 0.6;
357+
}
358+
359+
.mg-year-marker line {
360+
opacity: 1;
361+
shape-rendering: auto;
362+
stroke: #b3b2b2;
363+
stroke-width: 1px;
364+
}
365+
366+
.mg-year-marker-small text {
367+
font-size: 0.6rem;
368+
}

public/js/d3.min.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/metricsgraphics.min.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)