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 25, 2021
1 parent 9884887 commit b315495
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 b315495

Please sign in to comment.