Charts for iOS, tvOS and macOS: the Apple side of MPAndroidChart
open sourceApache-2.0free
DGCharts (formerly Charts, renamed in version 5.0 to avoid clashing with Apple's Swift Charts) is a charting library for iOS, tvOS and macOS, written in Swift and usable from Objective-C. It's the Apple-platform port of the Android library MPAndroidChart, with a near-identical API, so a team can draw the same line, bar, pie, scatter, candlestick, bubble and radar charts on both platforms with the same concepts. It installs with Swift Package Manager, CocoaPods or Carthage, and has optional Realm bindings (ChartsRealm). The last release is 5.1.0 (February 2024).
Problems it solves
- draw line, bar and pie charts in my iOS app
- a charting library that works the same on iOS and Android
- add candlestick charts to a Swift app
- charts for a macOS app that also support iOS 12
- chart library for an Objective-C iOS project
Features
- line, bar, pie, scatter, candlestick, bubble and radar charts
- iOS 12+, tvOS 12+ and macOS 10.13+
- usable from Swift and Objective-C
- API mirrors MPAndroidChart on Android
- Swift Package Manager, CocoaPods and Carthage
- optional Realm bindings
