File tree Expand file tree Collapse file tree 6 files changed +25
-2
lines changed Expand file tree Collapse file tree 6 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export default function() {
5
5
var priceFormat ;
6
6
var volumeFormat ;
7
7
var timeFormat ;
8
+ var textYOffset = '0.71em' ;
8
9
9
10
var tooltip = fc . chart . tooltip ( )
10
11
. items ( [
@@ -14,7 +15,12 @@ export default function() {
14
15
[ 'L' , function ( d ) { return priceFormat ( d . low ) ; } ] ,
15
16
[ 'C' , function ( d ) { return priceFormat ( d . close ) ; } ] ,
16
17
[ 'V' , function ( d ) { return volumeFormat ( d . volume ) ; } ]
17
- ] ) ;
18
+ ] )
19
+ . decorate ( function ( selection ) {
20
+ selection . enter ( )
21
+ . selectAll ( 'text' )
22
+ . attr ( 'dy' , textYOffset ) ;
23
+ } ) ;
18
24
19
25
function legend ( selection ) {
20
26
selection . each ( function ( model ) {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export default function() {
16
16
var handleBarWidth = 2 ;
17
17
var yExtentPadding = [ 0 , 0.04 ] ;
18
18
var numberOfSamples = 200 ;
19
+ var xAxisTextYOffset = '0.71em' ;
19
20
20
21
var dispatch = d3 . dispatch ( event . viewChange ) ;
21
22
var xScale = fc . scale . dateTime ( ) ;
@@ -27,7 +28,12 @@ export default function() {
27
28
bottom : bottomMargin // Variable also in navigator.less - should be used once ported to flex
28
29
} )
29
30
. xOuterTickSize ( 0 )
30
- . yOuterTickSize ( 0 ) ;
31
+ . yOuterTickSize ( 0 )
32
+ . decorate ( function ( selection ) {
33
+ selection . enter ( )
34
+ . selectAll ( '.x-axis text' )
35
+ . attr ( 'dy' , xAxisTextYOffset ) ;
36
+ } ) ;
31
37
32
38
var viewScale = fc . scale . dateTime ( ) ;
33
39
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export default function() {
47
47
var currentYValueAccessor = function ( d ) { return d . close ; } ;
48
48
var currentIndicators = [ ] ;
49
49
var zoomWidth ;
50
+ var yAxisTextYOffset = '0.35em' ;
50
51
51
52
var crosshairData = [ ] ;
52
53
var crosshair = fc . tool . crosshair ( )
@@ -221,6 +222,8 @@ export default function() {
221
222
} ) ;
222
223
closePriceTick . select ( 'text' )
223
224
. attr ( 'transform' , 'translate(' + calloutHeight / 2 + ',1)' ) ;
225
+
226
+ s . selectAll ( 'text' ) . attr ( 'dy' , yAxisTextYOffset ) ;
224
227
} ) ;
225
228
226
229
var tickValuesWithoutAnnotations = yScale . ticks . apply ( yScale , [ ] ) ;
Original file line number Diff line number Diff line change 48
48
font-weight : @font-weight-base ;
49
49
line-height : @line-height-base ;
50
50
fill : @font-colour ;
51
+ dominant-baseline : auto ;
51
52
}
52
53
.tick path {
53
54
stroke : @gridline-colour ;
Original file line number Diff line number Diff line change 14
14
width : 500px ;
15
15
height : 20px ;
16
16
justify-content : center ;
17
+ overflow : visible ;
18
+
19
+ .cell {
20
+ dominant-baseline : auto ;
21
+ }
17
22
18
23
.label {
19
24
fill : @legend-label-font-colour ;
25
+ font-size : 12px ;
20
26
}
21
27
.value {
22
28
fill : @legend-value-font-colour ;
Original file line number Diff line number Diff line change 67
67
text {
68
68
font-size : @font-size-base ;
69
69
fill : @font-colour ;
70
+ dominant-baseline : auto ;
70
71
}
71
72
72
73
#brush-mask {
You can’t perform that action at this time.
0 commit comments