Skip to content

Commit

Permalink
fix: big number with trendline fix (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
khtruong authored and zhaoyongjie committed Nov 26, 2021
1 parent 77396af commit 66a5a5e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,10 @@ class BigNumberVis extends React.PureComponent {
return (
<div className={className}>
<div className="text-container" style={{ height: allTextHeight }}>
{this.renderHeader(Math.ceil(headerFontSize * height))}
{this.renderSubheader(Math.ceil(subheaderFontSize * height))}
{this.renderHeader(Math.ceil(headerFontSize * (1 - PROPORTION.TRENDLINE) * height))}
{this.renderSubheader(
Math.ceil(subheaderFontSize * (1 - PROPORTION.TRENDLINE) * height),
)}
</div>
{this.renderTrendline(chartHeight)}
</div>
Expand Down

0 comments on commit 66a5a5e

Please sign in to comment.