Skip to content

Commit

Permalink
Merge pull request ChartsOrg#2679 from xinranw/reduce-build-time
Browse files Browse the repository at this point in the history
Reduce build time with minor reference refactor
  • Loading branch information
liuxuan30 committed Aug 29, 2017
2 parents 9b57332 + 4d094a6 commit 2d1273c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Source/Charts/Renderers/ChartDataRendererBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ open class DataRenderer: Renderer
{
guard let data = dataProvider?.data
else { return false }

return data.entryCount < Int(CGFloat(dataProvider?.maxVisibleCount ?? 0) * (viewPortHandler?.scaleX ?? 1.0))
return data.entryCount < Int(CGFloat(dataProvider?.maxVisibleCount ?? 0) * (self.viewPortHandler?.scaleX ?? 1.0))
}
}
3 changes: 1 addition & 2 deletions Source/Charts/Renderers/HorizontalBarChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,7 @@ open class HorizontalBarChartRenderer: BarChartRenderer
{
guard let data = dataProvider?.data
else { return false }

return data.entryCount < Int(CGFloat(dataProvider?.maxVisibleCount ?? 0) * (viewPortHandler?.scaleY ?? 1.0))
return data.entryCount < Int(CGFloat(dataProvider?.maxVisibleCount ?? 0) * (self.viewPortHandler?.scaleY ?? 1.0))
}

/// Sets the drawing position of the highlight object based on the riven bar-rect.
Expand Down

0 comments on commit 2d1273c

Please sign in to comment.