-
Notifications
You must be signed in to change notification settings - Fork 0
/
bar-chart.css
94 lines (79 loc) · 1.59 KB
/
bar-chart.css
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
89
90
h2 {
padding-top: 50px;
}
.bar-chart-html div {
font: 10px sans-serif;
background-color: steelblue;
text-align: right;
padding: 3px;
margin: 1px;
color: white;
}
.bar-chart-svg rect {
fill: steelblue;
}
.bar-chart-svg text {
font: 10px sans-serif;
fill: white;
text-anchor: end;
}
.chart4 .axis--x path {
display: none;
}
.chart4 text {
font-size: 14px;
}
/* for chart tips with info data point on hover over bars */
.d3-tip {
line-height: 1;
font-weight: bold;
padding: 5px;
background: rgba(0, 0, 0, 0.6);
color: #fff;
border-radius: 2px;
}
/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
box-sizing: border-box;
display: inline;
font-size: 15px;
width: 100%;
line-height: 1;
color: rgba(0, 0, 0, 0.6);
content: "\25BC";
position: absolute;
text-align: center;
}
/* Style the northward tooltip */
.d3-tip.n:after {
margin: -3px 0 0 0;
top: 100%;
left: 0;
}
.d3-comment__arrow {
width: 50px;
height: 25px;
}
/* Four directions for the arrow, nw (north-west) being the one drawn in the svg */
.d3-comment__arrow.ne {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: “FlipH”;
}
.d3-comment__arrow.se {
-moz-transform: scale(-1, -1);
-o-transform: scale(-1, -1);
-webkit-transform: scale(-1, -1);
transform: scale(-1, -1);
}
.d3-comment__arrow.sw {
-moz-transform: scaleY(-1);
-o-transform: scaleY(-1);
-webkit-transform: scaleY(-1);
transform: scaleY(-1);
filter: FlipV;
-ms-filter: “FlipV”;
}