Update style logic to use axes labels

pull/10616/head
Andrew Watkins 2017-08-02 14:16:14 -07:00
parent a9249e04e0
commit 9162293071
1 changed files with 3 additions and 1 deletions

View File

@ -153,10 +153,12 @@ export default React.createClass({
roundedValue = Math.round(+lastValue * precision) / precision
}
const isLabelSet = !!axes.y.label || !!axes.y2.label
return (
<div
className={classnames('dygraph', {
'graph--hasYLabel': !!(options.ylabel || options.y2label),
'graph--hasYLabel': isLabelSet,
})}
style={{height: '100%'}}
>