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