Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/danielgindi/Charts:
  fix ChartsOrg#3311. Need one more key for iOS 11 camera roll saving
  revert a mistake, fix ChartsOrg#3299
  • Loading branch information
FreddyZeng committed Mar 11, 2018
2 parents 09aca8f + 0ceab4e commit 8b4d125
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChartsDemo/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>This app requires access to the photo library to store shots of charts there.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library to store shots of charts there.</string>
<key>UILaunchStoryboardName</key>
Expand Down
4 changes: 2 additions & 2 deletions Source/Charts/Jobs/ZoomViewJob.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ open class ZoomViewJob: ViewPortJob
let xValsInView = (view as! BarLineChartViewBase).xAxis.axisRange / Double(viewPortHandler.scaleX)

var pt = CGPoint(
x: CGFloat(xValue - xValsInView) / 2.0,
y: CGFloat(yValue + yValsInView) / 2.0
x: CGFloat(xValue - xValsInView / 2.0),
y: CGFloat(yValue + yValsInView / 2.0)
)

transformer.pointValueToPixel(&pt)
Expand Down

0 comments on commit 8b4d125

Please sign in to comment.