Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Version 4.0.0, synced to MPAndroidChart #f6a398b
ChartsRealm, instead of ~
Charts/Core~ and ~
I've chosen to write it in
Swiftas it can be highly optimized by the compiler, and can be used in both
ObjCproject. The demo project is written in
ObjCto demonstrate how it works.
An amazing feature of this library now, for Android, iOS, tvOS and macOS, is the time it saves you when developing for both platforms, as the learning curve is singleton- it happens only once, and the code stays very similar so developers don't have to go around and re-invent the app to produce the same output with a different library. (And that's not even considering the fact that there's not really another good choice out there currently...)
ChartsDemo/ChartsDemo.xcodeprojis the demo project for iOS/tvOS
ChartsDemo-OSX/ChartsDemo-OSX.xcodeprojis the demo project for macOS
carthage checkoutin the project folder, to fetch dependencies (i.e testing dependencies).
In order to correctly compile:
Charts.xcodeprojto your project
ChartsRealmas a dependency too.
Want your tutorial to show here? Create a PR!
pod 'Charts'to your Podfile. "Charts" is the name of the library.
pod 'ios-charts'~~ is not the correct library, and refers to a different project by someone else.
Charts now include Carthage prebuilt binaries.
github "danielgindi/Charts" == 4.0.0 github "danielgindi/Charts" ~> 4.0.0
In order to build the binaries for a new release, use
carthage build --no-skip-current && carthage archive Charts.
Swift Package Manager
dependencies: [ .package(url: "https://github.com/danielgindi/Charts.git", .upToNextMajor(from: "4.0.0")) ]
If you like what you see here, and want to support the work being done in this repository, you could: * Contribute code, issues and pull requests * Let people know this library exists (:fire: spread the word :fire:) * (You can buy me a beer, or you can buy me dinner :-)
If you are having questions or problems, you should:
Core features: - 8 different chart types - Scaling on both axes (with touch-gesture, axes separately or pinch-zoom) - Dragging / Panning (with touch-gesture) - Combined-Charts (line-, bar-, scatter-, candle-stick-, bubble-) - Dual (separate) Axes - Customizable Axes (both x- and y-axis) - Highlighting values (with customizable popup-views) - Save chart to camera-roll / export to PNG/JPEG - Predefined color templates - Legends (generated automatically, customizable) - Animations (build up animations, on both x- and y-axis) - Limit lines (providing additional information, maximums, ...) - Fully customizable (paints, typefaces, legends, colors, background, gestures, dashed lines, ...) - Plotting data directly from Realm.io mobile database (here)
Screenshots are currently taken from the original repository, as they render exactly the same :-)
LineChart (with legend, simple design)
LineChart (cubic lines)
LineChart (gradient fill)
Combined-Chart (bar- and linechart in this case)
BarChart (with legend, simple design)
Goes to @liuxuan30, @petester42 and @AlBirdie for new features, bugfixes, and lots and lots of involvement in our open-sourced community! You guys are a huge help to all of those coming here with questions and issues, and I couldn't respond to all of those without you.
Debricked: Use open source securely
Copyright 2016 Daniel Cohen Gindi & Philipp Jahoda
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.