File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 36513651 // rotate X lables if they are too big
36523652 if ( ( textscale < 0.7 ) && ! vertical && ( side > 0 ) ) {
36533653 label_g . selectAll ( "text" ) . each ( function ( ) {
3654- var txt = d3 . select ( this ) , x = txt . attr ( "x" ) , y = txt . attr ( "y" ) ;
3654+ var txt = d3 . select ( this ) , x = txt . attr ( "x" ) , y = txt . attr ( "y" ) - 5 ;
36553655
3656- txt . attr ( "transform" , "translate(" + x + "," + y + ") rotate(20 )" )
3656+ txt . attr ( "transform" , "translate(" + x + "," + y + ") rotate(25 )" )
36573657 . style ( "text-anchor" , "start" )
36583658 . attr ( "x" , null ) . attr ( "y" , null ) ;
36593659 } ) ;
3660- textscale *= 2 ;
3660+ textscale *= 3.5 ;
36613661 }
36623662 // round to upper boundary for calculated value like 4.4
36633663 labelfont . size = Math . floor ( labelfont . size * textscale + 0.7 ) ;
You can’t perform that action at this time.
0 commit comments