chartx 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.gitmodules +3 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +145 -0
- data/Rakefile +1 -0
- data/chartx.gemspec +40 -0
- data/lib/chartx/engine.rb +11 -0
- data/lib/chartx/helper.rb +184 -0
- data/lib/chartx/version.rb +3 -0
- data/lib/chartx.rb +3 -0
- data/screenshots/barchart.png +0 -0
- data/screenshots/bulletchart.png +0 -0
- data/screenshots/horizontalbarchart.png +0 -0
- data/screenshots/linechart.png +0 -0
- data/screenshots/linewithfocuschart.png +0 -0
- data/screenshots/multibarchart2.png +0 -0
- data/screenshots/piechart.png +0 -0
- data/screenshots/scatterchart.png +0 -0
- data/screenshots/stackedareachart.png +0 -0
- data/screenshots/stackedareachart3.png +0 -0
- data/vendor/assets/javascripts/chartx-core.js +9 -0
- data/vendor/assets/javascripts/chartx-models.js +2 -0
- data/vendor/assets/javascripts/nvd3/.gitignore +27 -0
- data/vendor/assets/javascripts/nvd3/.jshintrc +3 -0
- data/vendor/assets/javascripts/nvd3/LICENSE.md +49 -0
- data/vendor/assets/javascripts/nvd3/README.md +1 -0
- data/vendor/assets/javascripts/nvd3/lib/cie.js +155 -0
- data/vendor/assets/javascripts/nvd3/lib/crossfilter.js +1180 -0
- data/vendor/assets/javascripts/nvd3/lib/crossfilter.min.js +1 -0
- data/vendor/assets/javascripts/nvd3/lib/d3.js +8798 -0
- data/vendor/assets/javascripts/nvd3/lib/d3.min.js +5 -0
- data/vendor/assets/javascripts/nvd3/lib/fisheye.js +86 -0
- data/vendor/assets/javascripts/nvd3/lib/hive.js +80 -0
- data/vendor/assets/javascripts/nvd3/lib/horizon.js +192 -0
- data/vendor/assets/javascripts/nvd3/lib/sankey.js +292 -0
- data/vendor/assets/javascripts/nvd3/nv.d3.js +13048 -0
- data/vendor/assets/javascripts/nvd3/nv.d3.min.js +6 -0
- data/vendor/assets/javascripts/nvd3/src/core.js +118 -0
- data/vendor/assets/javascripts/nvd3/src/intro.js +1 -0
- data/vendor/assets/javascripts/nvd3/src/models/axis.js +398 -0
- data/vendor/assets/javascripts/nvd3/src/models/boilerplate.js +102 -0
- data/vendor/assets/javascripts/nvd3/src/models/bullet.js +377 -0
- data/vendor/assets/javascripts/nvd3/src/models/bulletChart.js +341 -0
- data/vendor/assets/javascripts/nvd3/src/models/cumulativeLineChart.js +685 -0
- data/vendor/assets/javascripts/nvd3/src/models/discreteBar.js +327 -0
- data/vendor/assets/javascripts/nvd3/src/models/discreteBarChart.js +290 -0
- data/vendor/assets/javascripts/nvd3/src/models/distribution.js +146 -0
- data/vendor/assets/javascripts/nvd3/src/models/historicalBar.js +289 -0
- data/vendor/assets/javascripts/nvd3/src/models/historicalBarChart.js +421 -0
- data/vendor/assets/javascripts/nvd3/src/models/indentedTree.js +317 -0
- data/vendor/assets/javascripts/nvd3/src/models/legend.js +207 -0
- data/vendor/assets/javascripts/nvd3/src/models/line.js +284 -0
- data/vendor/assets/javascripts/nvd3/src/models/lineChart.js +421 -0
- data/vendor/assets/javascripts/nvd3/src/models/linePlusBarChart.js +455 -0
- data/vendor/assets/javascripts/nvd3/src/models/linePlusBarWithFocusChart.js +665 -0
- data/vendor/assets/javascripts/nvd3/src/models/lineWithFisheye.js +197 -0
- data/vendor/assets/javascripts/nvd3/src/models/lineWithFisheyeChart.js +319 -0
- data/vendor/assets/javascripts/nvd3/src/models/lineWithFocusChart.js +560 -0
- data/vendor/assets/javascripts/nvd3/src/models/multiBar.js +442 -0
- data/vendor/assets/javascripts/nvd3/src/models/multiBarChart.js +506 -0
- data/vendor/assets/javascripts/nvd3/src/models/multiBarHorizontal.js +420 -0
- data/vendor/assets/javascripts/nvd3/src/models/multiBarHorizontalChart.js +448 -0
- data/vendor/assets/javascripts/nvd3/src/models/multiBarTimeSeries.js +371 -0
- data/vendor/assets/javascripts/nvd3/src/models/multiBarTimeSeriesChart.js +403 -0
- data/vendor/assets/javascripts/nvd3/src/models/multiChart.js +444 -0
- data/vendor/assets/javascripts/nvd3/src/models/ohlcBar.js +365 -0
- data/vendor/assets/javascripts/nvd3/src/models/parallelCoordinates.js +238 -0
- data/vendor/assets/javascripts/nvd3/src/models/pie.js +386 -0
- data/vendor/assets/javascripts/nvd3/src/models/pieChart.js +302 -0
- data/vendor/assets/javascripts/nvd3/src/models/scatter.js +660 -0
- data/vendor/assets/javascripts/nvd3/src/models/scatterChart.js +614 -0
- data/vendor/assets/javascripts/nvd3/src/models/scatterPlusLineChart.js +610 -0
- data/vendor/assets/javascripts/nvd3/src/models/sparkline.js +179 -0
- data/vendor/assets/javascripts/nvd3/src/models/sparklinePlus.js +293 -0
- data/vendor/assets/javascripts/nvd3/src/models/stackedArea.js +336 -0
- data/vendor/assets/javascripts/nvd3/src/models/stackedAreaChart.js +490 -0
- data/vendor/assets/javascripts/nvd3/src/nv.d3.css +704 -0
- data/vendor/assets/javascripts/nvd3/src/outro.js +1 -0
- data/vendor/assets/javascripts/nvd3/src/tooltip.js +133 -0
- data/vendor/assets/javascripts/nvd3/src/utils.js +118 -0
- data/vendor/assets/javascripts/set-env.js.erb +1 -0
- data/vendor/assets/stylesheets/chartx.css +3 -0
- metadata +189 -0
@@ -0,0 +1,704 @@
|
|
1
|
+
|
2
|
+
/********************
|
3
|
+
* HTML CSS
|
4
|
+
*/
|
5
|
+
|
6
|
+
|
7
|
+
.chartWrap {
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
overflow: hidden;
|
11
|
+
}
|
12
|
+
|
13
|
+
|
14
|
+
/********************
|
15
|
+
* TOOLTIP CSS
|
16
|
+
*/
|
17
|
+
|
18
|
+
.nvtooltip {
|
19
|
+
position: absolute;
|
20
|
+
background-color: rgba(255,255,255,0.75);
|
21
|
+
padding: 1px;
|
22
|
+
border: 1px solid rgba(0,0,0,.2);
|
23
|
+
z-index: 10000;
|
24
|
+
|
25
|
+
font-family: Arial;
|
26
|
+
font-size: 13px;
|
27
|
+
|
28
|
+
/*transition: opacity 500ms linear;
|
29
|
+
-moz-transition: opacity 500ms linear;
|
30
|
+
-webkit-transition: opacity 500ms linear;
|
31
|
+
|
32
|
+
transition-delay: 500ms;
|
33
|
+
-moz-transition-delay: 500ms;
|
34
|
+
-webkit-transition-delay: 500ms;
|
35
|
+
|
36
|
+
*/
|
37
|
+
|
38
|
+
-moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
39
|
+
-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
40
|
+
box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
41
|
+
|
42
|
+
-webkit-border-radius: 6px;
|
43
|
+
-moz-border-radius: 6px;
|
44
|
+
border-radius: 6px;
|
45
|
+
|
46
|
+
pointer-events: none;
|
47
|
+
|
48
|
+
-webkit-touch-callout: none;
|
49
|
+
-webkit-user-select: none;
|
50
|
+
-khtml-user-select: none;
|
51
|
+
-moz-user-select: none;
|
52
|
+
-ms-user-select: none;
|
53
|
+
user-select: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
.nvtooltip.x-nvtooltip,
|
57
|
+
.nvtooltip.y-nvtooltip {
|
58
|
+
padding: 8px;
|
59
|
+
}
|
60
|
+
|
61
|
+
.nvtooltip h3 {
|
62
|
+
margin: 0;
|
63
|
+
padding: 4px 14px;
|
64
|
+
line-height: 18px;
|
65
|
+
font-weight: normal;
|
66
|
+
background-color: rgba(247,247,247,0.75);
|
67
|
+
text-align: center;
|
68
|
+
|
69
|
+
border-bottom: 1px solid #ebebeb;
|
70
|
+
|
71
|
+
-webkit-border-radius: 5px 5px 0 0;
|
72
|
+
-moz-border-radius: 5px 5px 0 0;
|
73
|
+
border-radius: 5px 5px 0 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
.nvtooltip p {
|
77
|
+
margin: 0;
|
78
|
+
padding: 5px 14px;
|
79
|
+
text-align: center;
|
80
|
+
}
|
81
|
+
|
82
|
+
.nvtooltip span {
|
83
|
+
display: inline-block;
|
84
|
+
margin: 2px 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
.nvtooltip-pending-removal {
|
88
|
+
position: absolute;
|
89
|
+
pointer-events: none;
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
/********************
|
94
|
+
* SVG CSS
|
95
|
+
*/
|
96
|
+
|
97
|
+
|
98
|
+
svg {
|
99
|
+
-webkit-touch-callout: none;
|
100
|
+
-webkit-user-select: none;
|
101
|
+
-khtml-user-select: none;
|
102
|
+
-moz-user-select: none;
|
103
|
+
-ms-user-select: none;
|
104
|
+
user-select: none;
|
105
|
+
/* Trying to get SVG to act like a greedy block in all browsers */
|
106
|
+
display: block;
|
107
|
+
width:100%;
|
108
|
+
height:100%;
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
svg text {
|
113
|
+
font: normal 12px Arial;
|
114
|
+
}
|
115
|
+
|
116
|
+
svg .title {
|
117
|
+
font: bold 14px Arial;
|
118
|
+
}
|
119
|
+
|
120
|
+
.nvd3 .nv-background {
|
121
|
+
fill: white;
|
122
|
+
fill-opacity: 0;
|
123
|
+
/*
|
124
|
+
pointer-events: none;
|
125
|
+
*/
|
126
|
+
}
|
127
|
+
|
128
|
+
.nvd3.nv-noData {
|
129
|
+
font-size: 18px;
|
130
|
+
font-weight: bold;
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
/**********
|
135
|
+
* Brush
|
136
|
+
*/
|
137
|
+
|
138
|
+
.nv-brush .extent {
|
139
|
+
fill-opacity: .125;
|
140
|
+
shape-rendering: crispEdges;
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
/**********
|
146
|
+
* Legend
|
147
|
+
*/
|
148
|
+
|
149
|
+
.nvd3 .nv-legend .nv-series {
|
150
|
+
cursor: pointer;
|
151
|
+
}
|
152
|
+
|
153
|
+
.nvd3 .nv-legend .disabled circle {
|
154
|
+
fill-opacity: 0;
|
155
|
+
}
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
/**********
|
160
|
+
* Axes
|
161
|
+
*/
|
162
|
+
|
163
|
+
.nvd3 .nv-axis path {
|
164
|
+
fill: none;
|
165
|
+
stroke: #000;
|
166
|
+
stroke-opacity: .75;
|
167
|
+
shape-rendering: crispEdges;
|
168
|
+
}
|
169
|
+
|
170
|
+
.nvd3 .nv-axis path.domain {
|
171
|
+
stroke-opacity: .75;
|
172
|
+
}
|
173
|
+
|
174
|
+
.nvd3 .nv-axis.nv-x path.domain {
|
175
|
+
stroke-opacity: 0;
|
176
|
+
}
|
177
|
+
|
178
|
+
.nvd3 .nv-axis line {
|
179
|
+
fill: none;
|
180
|
+
stroke: #e5e5e5;
|
181
|
+
shape-rendering: crispEdges;
|
182
|
+
}
|
183
|
+
|
184
|
+
.nvd3 .nv-axis .zero line,
|
185
|
+
/*this selector may not be necessary*/ .nvd3 .nv-axis line.zero {
|
186
|
+
stroke-opacity: .75;
|
187
|
+
}
|
188
|
+
|
189
|
+
.nvd3 .nv-axis .nv-axisMaxMin text {
|
190
|
+
font-weight: bold;
|
191
|
+
}
|
192
|
+
|
193
|
+
.nvd3 .x .nv-axis .nv-axisMaxMin text,
|
194
|
+
.nvd3 .x2 .nv-axis .nv-axisMaxMin text,
|
195
|
+
.nvd3 .x3 .nv-axis .nv-axisMaxMin text {
|
196
|
+
text-anchor: middle
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
/**********
|
202
|
+
* Brush
|
203
|
+
*/
|
204
|
+
|
205
|
+
.nv-brush .resize path {
|
206
|
+
fill: #eee;
|
207
|
+
stroke: #666;
|
208
|
+
}
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
/**********
|
213
|
+
* Bars
|
214
|
+
*/
|
215
|
+
|
216
|
+
.nvd3 .nv-bars .negative rect {
|
217
|
+
zfill: brown;
|
218
|
+
}
|
219
|
+
|
220
|
+
.nvd3 .nv-bars rect {
|
221
|
+
zfill: steelblue;
|
222
|
+
fill-opacity: .75;
|
223
|
+
|
224
|
+
transition: fill-opacity 250ms linear;
|
225
|
+
-moz-transition: fill-opacity 250ms linear;
|
226
|
+
-webkit-transition: fill-opacity 250ms linear;
|
227
|
+
}
|
228
|
+
|
229
|
+
.nvd3 .nv-bars rect:hover {
|
230
|
+
fill-opacity: 1;
|
231
|
+
}
|
232
|
+
|
233
|
+
.nvd3 .nv-bars .hover rect {
|
234
|
+
fill: lightblue;
|
235
|
+
}
|
236
|
+
|
237
|
+
.nvd3 .nv-bars text {
|
238
|
+
fill: rgba(0,0,0,0);
|
239
|
+
}
|
240
|
+
|
241
|
+
.nvd3 .nv-bars .hover text {
|
242
|
+
fill: rgba(0,0,0,1);
|
243
|
+
}
|
244
|
+
|
245
|
+
|
246
|
+
/**********
|
247
|
+
* Bars
|
248
|
+
*/
|
249
|
+
|
250
|
+
.nvd3 .nv-multibar .nv-groups rect,
|
251
|
+
.nvd3 .nv-multibarHorizontal .nv-groups rect,
|
252
|
+
.nvd3 .nv-discretebar .nv-groups rect {
|
253
|
+
stroke-opacity: 0;
|
254
|
+
|
255
|
+
transition: fill-opacity 250ms linear;
|
256
|
+
-moz-transition: fill-opacity 250ms linear;
|
257
|
+
-webkit-transition: fill-opacity 250ms linear;
|
258
|
+
}
|
259
|
+
|
260
|
+
.nvd3 .nv-multibar .nv-groups rect:hover,
|
261
|
+
.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,
|
262
|
+
.nvd3 .nv-discretebar .nv-groups rect:hover {
|
263
|
+
fill-opacity: 1;
|
264
|
+
}
|
265
|
+
|
266
|
+
.nvd3 .nv-discretebar .nv-groups text,
|
267
|
+
.nvd3 .nv-multibarHorizontal .nv-groups text {
|
268
|
+
font-weight: bold;
|
269
|
+
fill: rgba(0,0,0,1);
|
270
|
+
stroke: rgba(0,0,0,0);
|
271
|
+
}
|
272
|
+
|
273
|
+
/***********
|
274
|
+
* Pie Chart
|
275
|
+
*/
|
276
|
+
|
277
|
+
.nvd3.nv-pie path {
|
278
|
+
stroke-opacity: 0;
|
279
|
+
|
280
|
+
transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;
|
281
|
+
-moz-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;
|
282
|
+
-webkit-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;
|
283
|
+
|
284
|
+
}
|
285
|
+
|
286
|
+
.nvd3.nv-pie .nv-slice text {
|
287
|
+
stroke: #000;
|
288
|
+
stroke-width: 0;
|
289
|
+
}
|
290
|
+
|
291
|
+
.nvd3.nv-pie path {
|
292
|
+
stroke: #fff;
|
293
|
+
stroke-width: 1px;
|
294
|
+
stroke-opacity: 1;
|
295
|
+
}
|
296
|
+
|
297
|
+
.nvd3.nv-pie .hover path {
|
298
|
+
fill-opacity: .7;
|
299
|
+
/*
|
300
|
+
stroke-width: 6px;
|
301
|
+
stroke-opacity: 1;
|
302
|
+
*/
|
303
|
+
}
|
304
|
+
|
305
|
+
.nvd3.nv-pie .nv-label rect {
|
306
|
+
fill-opacity: 0;
|
307
|
+
stroke-opacity: 0;
|
308
|
+
}
|
309
|
+
|
310
|
+
/**********
|
311
|
+
* Lines
|
312
|
+
*/
|
313
|
+
|
314
|
+
.nvd3 .nv-groups path.nv-line {
|
315
|
+
fill: none;
|
316
|
+
stroke-width: 2.5px;
|
317
|
+
/*
|
318
|
+
stroke-linecap: round;
|
319
|
+
shape-rendering: geometricPrecision;
|
320
|
+
|
321
|
+
transition: stroke-width 250ms linear;
|
322
|
+
-moz-transition: stroke-width 250ms linear;
|
323
|
+
-webkit-transition: stroke-width 250ms linear;
|
324
|
+
|
325
|
+
transition-delay: 250ms
|
326
|
+
-moz-transition-delay: 250ms;
|
327
|
+
-webkit-transition-delay: 250ms;
|
328
|
+
*/
|
329
|
+
}
|
330
|
+
|
331
|
+
.nvd3 .nv-groups path.nv-area {
|
332
|
+
stroke: none;
|
333
|
+
/*
|
334
|
+
stroke-linecap: round;
|
335
|
+
shape-rendering: geometricPrecision;
|
336
|
+
|
337
|
+
stroke-width: 2.5px;
|
338
|
+
transition: stroke-width 250ms linear;
|
339
|
+
-moz-transition: stroke-width 250ms linear;
|
340
|
+
-webkit-transition: stroke-width 250ms linear;
|
341
|
+
|
342
|
+
transition-delay: 250ms
|
343
|
+
-moz-transition-delay: 250ms;
|
344
|
+
-webkit-transition-delay: 250ms;
|
345
|
+
*/
|
346
|
+
}
|
347
|
+
|
348
|
+
.nvd3 .nv-line.hover path {
|
349
|
+
stroke-width: 6px;
|
350
|
+
}
|
351
|
+
|
352
|
+
/*
|
353
|
+
.nvd3.scatter .groups .point {
|
354
|
+
fill-opacity: 0.1;
|
355
|
+
stroke-opacity: 0.1;
|
356
|
+
}
|
357
|
+
*/
|
358
|
+
|
359
|
+
.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point {
|
360
|
+
fill-opacity: 0;
|
361
|
+
stroke-opacity: 0;
|
362
|
+
}
|
363
|
+
|
364
|
+
.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point {
|
365
|
+
fill-opacity: .5 !important;
|
366
|
+
stroke-opacity: .5 !important;
|
367
|
+
}
|
368
|
+
|
369
|
+
|
370
|
+
.nvd3 .nv-groups .nv-point {
|
371
|
+
transition: stroke-width 250ms linear, stroke-opacity 250ms linear;
|
372
|
+
-moz-transition: stroke-width 250ms linear, stroke-opacity 250ms linear;
|
373
|
+
-webkit-transition: stroke-width 250ms linear, stroke-opacity 250ms linear;
|
374
|
+
}
|
375
|
+
|
376
|
+
.nvd3.nv-scatter .nv-groups .nv-point.hover,
|
377
|
+
.nvd3 .nv-groups .nv-point.hover {
|
378
|
+
stroke-width: 20px;
|
379
|
+
fill-opacity: .5 !important;
|
380
|
+
stroke-opacity: .5 !important;
|
381
|
+
}
|
382
|
+
|
383
|
+
|
384
|
+
.nvd3 .nv-point-paths path {
|
385
|
+
stroke: #aaa;
|
386
|
+
stroke-opacity: 0;
|
387
|
+
fill: #eee;
|
388
|
+
fill-opacity: 0;
|
389
|
+
}
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
.nvd3 .nv-indexLine {
|
394
|
+
cursor: ew-resize;
|
395
|
+
}
|
396
|
+
|
397
|
+
|
398
|
+
/**********
|
399
|
+
* Distribution
|
400
|
+
*/
|
401
|
+
|
402
|
+
.nvd3 .nv-distribution {
|
403
|
+
pointer-events: none;
|
404
|
+
}
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
/**********
|
409
|
+
* Scatter
|
410
|
+
*/
|
411
|
+
|
412
|
+
/* **Attempting to remove this for useVoronoi(false), need to see if it's required anywhere
|
413
|
+
.nvd3 .nv-groups .nv-point {
|
414
|
+
pointer-events: none;
|
415
|
+
}
|
416
|
+
*/
|
417
|
+
|
418
|
+
.nvd3 .nv-groups .nv-point.hover {
|
419
|
+
stroke-width: 20px;
|
420
|
+
stroke-opacity: .5;
|
421
|
+
}
|
422
|
+
|
423
|
+
.nvd3 .nv-scatter .nv-point.hover {
|
424
|
+
fill-opacity: 1;
|
425
|
+
}
|
426
|
+
|
427
|
+
/*
|
428
|
+
.nv-group.hover .nv-point {
|
429
|
+
fill-opacity: 1;
|
430
|
+
}
|
431
|
+
*/
|
432
|
+
|
433
|
+
|
434
|
+
/**********
|
435
|
+
* Stacked Area
|
436
|
+
*/
|
437
|
+
|
438
|
+
.nvd3.nv-stackedarea path.nv-area {
|
439
|
+
fill-opacity: .7;
|
440
|
+
/*
|
441
|
+
stroke-opacity: .65;
|
442
|
+
fill-opacity: 1;
|
443
|
+
*/
|
444
|
+
stroke-opacity: 0;
|
445
|
+
|
446
|
+
transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;
|
447
|
+
-moz-transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;
|
448
|
+
-webkit-transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;
|
449
|
+
|
450
|
+
/*
|
451
|
+
transition-delay: 500ms;
|
452
|
+
-moz-transition-delay: 500ms;
|
453
|
+
-webkit-transition-delay: 500ms;
|
454
|
+
*/
|
455
|
+
|
456
|
+
}
|
457
|
+
|
458
|
+
.nvd3.nv-stackedarea path.nv-area.hover {
|
459
|
+
fill-opacity: .9;
|
460
|
+
/*
|
461
|
+
stroke-opacity: .85;
|
462
|
+
*/
|
463
|
+
}
|
464
|
+
/*
|
465
|
+
.d3stackedarea .groups path {
|
466
|
+
stroke-opacity: 0;
|
467
|
+
}
|
468
|
+
*/
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
.nvd3.nv-stackedarea .nv-groups .nv-point {
|
473
|
+
stroke-opacity: 0;
|
474
|
+
fill-opacity: 0;
|
475
|
+
}
|
476
|
+
|
477
|
+
.nvd3.nv-stackedarea .nv-groups .nv-point.hover {
|
478
|
+
stroke-width: 20px;
|
479
|
+
stroke-opacity: .75;
|
480
|
+
fill-opacity: 1;
|
481
|
+
}
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
/**********
|
486
|
+
* Line Plus Bar
|
487
|
+
*/
|
488
|
+
|
489
|
+
.nvd3.nv-linePlusBar .nv-bar rect {
|
490
|
+
fill-opacity: .75;
|
491
|
+
}
|
492
|
+
|
493
|
+
.nvd3.nv-linePlusBar .nv-bar rect:hover {
|
494
|
+
fill-opacity: 1;
|
495
|
+
}
|
496
|
+
|
497
|
+
|
498
|
+
/**********
|
499
|
+
* Bullet
|
500
|
+
*/
|
501
|
+
|
502
|
+
.nvd3.nv-bullet { font: 10px sans-serif; }
|
503
|
+
.nvd3.nv-bullet .nv-measure { fill-opacity: .8; }
|
504
|
+
.nvd3.nv-bullet .nv-measure:hover { fill-opacity: 1; }
|
505
|
+
.nvd3.nv-bullet .nv-marker { stroke: #000; stroke-width: 2px; }
|
506
|
+
.nvd3.nv-bullet .nv-markerTriangle { stroke: #000; fill: #fff; stroke-width: 1.5px; }
|
507
|
+
.nvd3.nv-bullet .nv-tick line { stroke: #666; stroke-width: .5px; }
|
508
|
+
.nvd3.nv-bullet .nv-range.nv-s0 { fill: #eee; }
|
509
|
+
.nvd3.nv-bullet .nv-range.nv-s1 { fill: #ddd; }
|
510
|
+
.nvd3.nv-bullet .nv-range.nv-s2 { fill: #ccc; }
|
511
|
+
.nvd3.nv-bullet .nv-title { font-size: 14px; font-weight: bold; }
|
512
|
+
.nvd3.nv-bullet .nv-subtitle { fill: #999; }
|
513
|
+
|
514
|
+
|
515
|
+
.nvd3.nv-bullet .nv-range {
|
516
|
+
fill: #999;
|
517
|
+
fill-opacity: .4;
|
518
|
+
}
|
519
|
+
.nvd3.nv-bullet .nv-range:hover {
|
520
|
+
fill-opacity: .7;
|
521
|
+
}
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
/**********
|
526
|
+
* Sparkline
|
527
|
+
*/
|
528
|
+
|
529
|
+
.nvd3.nv-sparkline path {
|
530
|
+
fill: none;
|
531
|
+
}
|
532
|
+
|
533
|
+
.nvd3.nv-sparklineplus g.nv-hoverValue {
|
534
|
+
pointer-events: none;
|
535
|
+
}
|
536
|
+
|
537
|
+
.nvd3.nv-sparklineplus .nv-hoverValue line {
|
538
|
+
stroke: #333;
|
539
|
+
stroke-width: 1.5px;
|
540
|
+
}
|
541
|
+
|
542
|
+
.nvd3.nv-sparklineplus,
|
543
|
+
.nvd3.nv-sparklineplus g {
|
544
|
+
pointer-events: all;
|
545
|
+
}
|
546
|
+
|
547
|
+
.nvd3 .nv-hoverArea {
|
548
|
+
fill-opacity: 0;
|
549
|
+
stroke-opacity: 0;
|
550
|
+
}
|
551
|
+
|
552
|
+
.nvd3.nv-sparklineplus .nv-xValue,
|
553
|
+
.nvd3.nv-sparklineplus .nv-yValue {
|
554
|
+
/*
|
555
|
+
stroke: #666;
|
556
|
+
*/
|
557
|
+
stroke-width: 0;
|
558
|
+
font-size: .9em;
|
559
|
+
font-weight: normal;
|
560
|
+
}
|
561
|
+
|
562
|
+
.nvd3.nv-sparklineplus .nv-yValue {
|
563
|
+
stroke: #f66;
|
564
|
+
}
|
565
|
+
|
566
|
+
.nvd3.nv-sparklineplus .nv-maxValue {
|
567
|
+
stroke: #2ca02c;
|
568
|
+
fill: #2ca02c;
|
569
|
+
}
|
570
|
+
|
571
|
+
.nvd3.nv-sparklineplus .nv-minValue {
|
572
|
+
stroke: #d62728;
|
573
|
+
fill: #d62728;
|
574
|
+
}
|
575
|
+
|
576
|
+
.nvd3.nv-sparklineplus .nv-currentValue {
|
577
|
+
/*
|
578
|
+
stroke: #444;
|
579
|
+
fill: #000;
|
580
|
+
*/
|
581
|
+
font-weight: bold;
|
582
|
+
font-size: 1.1em;
|
583
|
+
}
|
584
|
+
|
585
|
+
/**********
|
586
|
+
* historical stock
|
587
|
+
*/
|
588
|
+
|
589
|
+
.nvd3.nv-ohlcBar .nv-ticks .nv-tick {
|
590
|
+
stroke-width: 2px;
|
591
|
+
}
|
592
|
+
|
593
|
+
.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover {
|
594
|
+
stroke-width: 4px;
|
595
|
+
}
|
596
|
+
|
597
|
+
.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive {
|
598
|
+
stroke: #2ca02c;
|
599
|
+
}
|
600
|
+
|
601
|
+
.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative {
|
602
|
+
stroke: #d62728;
|
603
|
+
}
|
604
|
+
|
605
|
+
.nvd3.nv-historicalStockChart .nv-axis .nv-axislabel {
|
606
|
+
font-weight: bold;
|
607
|
+
}
|
608
|
+
|
609
|
+
.nvd3.nv-historicalStockChart .nv-dragTarget {
|
610
|
+
fill-opacity: 0;
|
611
|
+
stroke: none;
|
612
|
+
cursor: move;
|
613
|
+
}
|
614
|
+
|
615
|
+
.nvd3 .nv-brush .extent {
|
616
|
+
/*
|
617
|
+
cursor: ew-resize !important;
|
618
|
+
*/
|
619
|
+
fill-opacity: 0 !important;
|
620
|
+
}
|
621
|
+
|
622
|
+
.nvd3 .nv-brushBackground rect {
|
623
|
+
stroke: #000;
|
624
|
+
stroke-width: .4;
|
625
|
+
fill: #fff;
|
626
|
+
fill-opacity: .7;
|
627
|
+
}
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
/**********
|
632
|
+
* Indented Tree
|
633
|
+
*/
|
634
|
+
|
635
|
+
|
636
|
+
/**
|
637
|
+
* TODO: the following 3 selectors are based on classes used in the example. I should either make them standard and leave them here, or move to a CSS file not included in the library
|
638
|
+
*/
|
639
|
+
.nvd3.nv-indentedtree .name {
|
640
|
+
margin-left: 5px;
|
641
|
+
}
|
642
|
+
|
643
|
+
.nvd3.nv-indentedtree .clickable {
|
644
|
+
color: #08C;
|
645
|
+
cursor: pointer;
|
646
|
+
}
|
647
|
+
|
648
|
+
.nvd3.nv-indentedtree span.clickable:hover {
|
649
|
+
color: #005580;
|
650
|
+
text-decoration: underline;
|
651
|
+
}
|
652
|
+
|
653
|
+
|
654
|
+
.nvd3.nv-indentedtree .nv-childrenCount {
|
655
|
+
display: inline-block;
|
656
|
+
margin-left: 5px;
|
657
|
+
}
|
658
|
+
|
659
|
+
.nvd3.nv-indentedtree .nv-treeicon {
|
660
|
+
cursor: pointer;
|
661
|
+
/*
|
662
|
+
cursor: n-resize;
|
663
|
+
*/
|
664
|
+
}
|
665
|
+
|
666
|
+
.nvd3.nv-indentedtree .nv-treeicon.nv-folded {
|
667
|
+
cursor: pointer;
|
668
|
+
/*
|
669
|
+
cursor: s-resize;
|
670
|
+
*/
|
671
|
+
}
|
672
|
+
|
673
|
+
/**********
|
674
|
+
* Parallel Coordinates
|
675
|
+
*/
|
676
|
+
|
677
|
+
.nvd3 .background path {
|
678
|
+
fill: none;
|
679
|
+
stroke: #ccc;
|
680
|
+
stroke-opacity: .4;
|
681
|
+
shape-rendering: crispEdges;
|
682
|
+
}
|
683
|
+
|
684
|
+
.nvd3 .foreground path {
|
685
|
+
fill: none;
|
686
|
+
stroke: steelblue;
|
687
|
+
stroke-opacity: .7;
|
688
|
+
}
|
689
|
+
|
690
|
+
.nvd3 .brush .extent {
|
691
|
+
fill-opacity: .3;
|
692
|
+
stroke: #fff;
|
693
|
+
shape-rendering: crispEdges;
|
694
|
+
}
|
695
|
+
|
696
|
+
.nvd3 .axis line, .axis path {
|
697
|
+
fill: none;
|
698
|
+
stroke: #000;
|
699
|
+
shape-rendering: crispEdges;
|
700
|
+
}
|
701
|
+
|
702
|
+
.nvd3 .axis text {
|
703
|
+
text-shadow: 0 1px 0 #fff;
|
704
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
})();
|