Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
guard let hour = components.hour, let minute = components.minute else {
return ""
}
let hourString = String(describing: hour)
let minuteString = String(describing: minute)
`
hi guys, i am working on the bar chart of charts library. but the chart gets selected even i tap outside the chart. i checked the link below which has older version of swift implemented and am looking for how can it be done in swift 4?
hi all - is there a way to use Charts with spm? I've tried
dependencies: [
.package(url: "https://github.com/danielgindi/Charts.git", from: "3.1.1")
],
and gotten
Dependencies:
https://github.com/danielgindi/Charts.git @ 3.1.1..<4.0.0
'ChartsDemo' /Users/seth/dev/swift/ChartsDemo: error: product dependency 'Charts' not found
I am trying to show positive as well as negative values in a bar chart. I . I am using charts 3.1 on xcode 9.4.1. Can anybody tell me how to acheive it. This answer suggests to set logical values and use formatter for showing values as negative.
But i don't know how to set logical values and use formatter for displaying neg values.
Any help would be much appreciated.
Thanks
Hi guys, I am sorry if this is not the right place to ask but it does not fit SO or Github Issues.
I can install Charts with CocoaPods, symbols lookup works, I use e.g. PieChartView in a ViewController.swift, everything builds without a problem.
But I don't see Chart entries in Library menu and I am stuck with getting anything working.
Same with the ChartsDemo-macOS project, it builds but there is nothing but defaults in Library and there isn't any window created once the project is built (maybe I am confused about what should happen after Run)
I am new to Swift and macOS programming so that could be part of the problem.
I am on XCode 11.2.1 Mojave 10.14.4