|
il y a 9 ans | |
---|---|---|
Assets | il y a 10 ans | |
Charts | il y a 9 ans | |
ChartsDemo | il y a 9 ans | |
.gitignore | il y a 9 ans | |
.travis.yml | il y a 9 ans | |
CHANGELOG.md | il y a 9 ans | |
CONTRIBUTING.md | il y a 10 ans | |
Charts.podspec | il y a 9 ans | |
Gemfile | il y a 9 ans | |
Gemfile.lock | il y a 9 ans | |
LICENSE | il y a 10 ans | |
README.md | il y a 9 ans | |
Rakefile | il y a 9 ans |
Version 2.1.6, synced to MPAndroidChart #825bd2a
Okay so there's this beautiful library called MPAndroidChart by Philipp Jahoda which has become very popular amongst Android developers, and in the meanwhile there's no decent charting solution for iOS.
I've chosen to write it in Swift
as it can be highly optimized by the compiler, and can be used in both Swift
and ObjC
project. The demo project is written in ObjC
to demonstrate how it works.
An amazing feature of this library now, both Android and iOS, 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...)
In order to correctly compile:
Charts.xcodeproj
to your project@import
line. So hit "Build" now!@import Charts
If you want to compile for iOS 7:
Realm.framework
optional in your Build Phases, or avoid copying the Realm
folder and the Realm.framework
.Charts/Classes/Data/Implementation/Realm
to remove Realm.io support.Add pod 'Charts'
to your Podfile. "Charts" is the name of the library.
Note: is not the correct library, and refers to a different project by someone else.pod 'ios-charts'
Charts now include Carthage prebuilt binaries.
github "danielgindi/ios-charts" == 2.1.6
github "danielgindi/ios-charts" ~> 2.1.6
In order to build the binaries for a new release, use carthage build --no-skip-current && carthage archive Charts
.
If you like what you see here, and want to support the work being done in this repository, you could:
Note: The author of MPAndroidChart is the reason that this library exists, and is accepting donations on his page. He deserves them!
If you are having questions or problems, you should:
ios-charts
tagCore features:
Chart types:
Screenshots are currently taken from the original repository, as they render exactly the same :-)
Currently there's no need for documentation for the iOS version, as the API is 95% the same as on Android.
You can read the official MPAndroidChart documentation here: Wiki
Or you can see the ChartsDemo project and learn the how-tos from it.
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.
Copyright 2015 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
http://www.apache.org/licenses/LICENSE-2.0
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.