@ -286,7 +286,7 @@ Licensed under the MIT license.
// If the font is a font-spec object, generate a CSS font definition
// If the font is a font-spec object, generate a CSS font definition
if ( typeof font === "object" ) {
if ( typeof font === "object" ) {
textStyle = font . style + " " + font . variant + " " + font . weight + " " + font . size + "px " + font . family ;
textStyle = font . style + " " + font . variant + " " + font . weight + " " + font . size + "px /" + font . lineHeight + "px " + font . family ;
} else {
} else {
textStyle = font ;
textStyle = font ;
}
}
@ -453,7 +453,7 @@ Licensed under the MIT license.
show : null , // null = auto-detect, true = always, false = never
show : null , // null = auto-detect, true = always, false = never
position : "bottom" , // or "top"
position : "bottom" , // or "top"
mode : null , // null or "time"
mode : null , // null or "time"
font : null , // null (derived from CSS in placeholder) or object like { size: 11, style: "italic", weight: "bold", family: "sans-serif", variant: "small-caps" }
font : null , // null (derived from CSS in placeholder) or object like { size: 11, lineHeight: 13, style: "italic", weight: "bold", family: "sans-serif", variant: "small-caps" }
color : null , // base color, labels, ticks
color : null , // base color, labels, ticks
tickColor : null , // possibly different color of ticks, e.g. "rgba(0,0,0,0.15)"
tickColor : null , // possibly different color of ticks, e.g. "rgba(0,0,0,0.15)"
transform : null , // null or f: number -> number to transform axis
transform : null , // null or f: number -> number to transform axis
@ -672,6 +672,8 @@ Licensed under the MIT license.
family : placeholder . css ( "font-family" )
family : placeholder . css ( "font-family" )
} ;
} ;
fontDefaults . lineHeight = fontDefaults . size * 1.15 ;
axisCount = options . xaxes . length || 1 ;
axisCount = options . xaxes . length || 1 ;
for ( i = 0 ; i < axisCount ; ++ i ) {
for ( i = 0 ; i < axisCount ; ++ i ) {