Skip to content

Commit

Permalink
Merge pull request #71 from prithsharma/release
Browse files Browse the repository at this point in the history
Add support for avoidFirstLastClippingEnabled property
  • Loading branch information
Jpadilla1 committed Nov 22, 2016
2 parents 8424403 + 34b9da8 commit cd0e70f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RNiOSCharts/BarLineChartViewBaseExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ extension BarLineChartViewBase {
self.xAxis.spaceBetweenLabels = json["xAxis"]["spaceBetweenLabels"].intValue;
}

if json["xAxis"]["avoidFirstLastClippingEnabled"].exists() {
self.xAxis.avoidFirstLastClippingEnabled = json["xAxis"]["avoidFirstLastClippingEnabled"].boolValue;
}

}

// leftAxis
Expand Down
3 changes: 2 additions & 1 deletion utils/commonProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ export const barLineCommonProps = {
valueTextColor: React.PropTypes.string,
xOffset: React.PropTypes.number,
yOffset: React.PropTypes.number
}))
})),
avoidFirstLastClippingEnabled: React.PropTypes.bool,
}),
leftAxis: React.PropTypes.shape({
enabled: React.PropTypes.bool,
Expand Down

0 comments on commit cd0e70f

Please sign in to comment.