Skip to content

Commit

Permalink
Add fontSize prop; add propType for fontFamily
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaono authored and sanjaypojo committed Feb 12, 2018
1 parent a852a5b commit 7ca72d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Legend.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class Legend extends React.Component {
if (titles.length > 15) {
size = 10
}
if (this.props.fontSize) {
size = this.props.fontSize
}
let buffer = {x: 5, y: 4}
let xTitle
if (this.props.showTitle) {
Expand Down Expand Up @@ -174,6 +177,8 @@ Legend.propTypes = {
shape: PropTypes.string,
showLegend: PropTypes.bool,
fontColor: PropTypes.string,
fontSize: PropTypes.number,
fontFamily: PropTypes.string,
backgroundColor: PropTypes.string,
showBorder: PropTypes.bool,
borderColor: PropTypes.string,
Expand Down

0 comments on commit 7ca72d0

Please sign in to comment.