PhilJay/ios-charts — dự án mã nguồn mở — đang có 26 sao GitHub. An iOS port of the beautiful MPAndroidChart. - Beautiful charts for iOS apps!
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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, for Android, iOS, tvOS and OSX, 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...)
Usage
In order to correctly compile:
Drag the Charts.xcodeproj to your project
Go to your target's settings, hit the "+" under the "Embedded Binaries" section, and select the Charts.framework
Temporary workaround: Xcode 6.3.1 has a bug, where you have to build your project once before actually writing the @import line. So hit "Build" now!
@import Charts
When using Swift in an ObjC project:
You need to import your Bridging Header. Usually it is "YourProject-Swift.h", so in ChartsDemo it's "ChartsDemo-Swift.h". Do not try to actually include "ChartsDemo-Swift.h" in your project :-)
Under "Build Options", mark "Embedded Content Contains Swift Code"
When using Realm.io:
Note that the Realm framework is not linked with Charts - it is only there for optional bindings. Which means that you need to have the framework in your project, and in a compatible version to whatever is compiled with Charts. We will do our best to always compile against the latest version.
If you want to compile for iOS 7:
Drag the code itself (.swift files) to your project. As sadly, Swift currently does not support compiling Frameworks for iOS 7.
Make sure that the files are added to the Target membership.
Troubleshooting
Can't compile?
Please note the difference between installing a compiled framework from CocoaPods or Carthage, and copying the source code.
If you are using Realm, please also #import <ChartsRealm/ChartsRealm.h>
If you are compiling the source code and want to use Realm, please make sure to include the code from ChartsRealm project.
Please read the Usage section again.
Search in the issues
Try to politely ask in the issues section
Other problems / feature requests
Search in the issues
Try to politely ask in the issues section
CocoaPods Install
Add pod 'Charts' to your Podfile. "Charts" is the name of the library.
For Realm support you can specify the subspec in your Podfile as follows:
pod 'Charts/Realm'
Note:pod 'ios-charts' is not the correct library, and refers to a different project by someone else.
Plotting data directly from Realm.io mobile database
Chart types:
Screenshots are currently taken from the original repository, as they render exactly the same :-)
LineChart (with legend, simple design)
LineChart (with legend, simple design)
LineChart (cubic lines)
LineChart (gradient fill)
Combined-Chart (bar- and linechart in this case)
BarChart (with legend, simple design)
BarChart (grouped DataSets)
Horizontal-BarChart
PieChart (with selection, ...)
ScatterChart (with squares, triangles, circles, ... and more)
CandleStickChart (for financial data)
BubbleChart (area covered by bubbles indicates the value)
RadarChart (spider web chart)
Documentation
Currently there's no need for documentation for the iOS/tvOS/OSX 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.
Special Thanks
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.
License
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
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.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/PhilJay/ios-charts là nguồn chính thức.
PhilJay/ios-charts có bao nhiêu sao?
PhilJay/ios-charts có 26 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/PhilJay/ios-charts. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
PhilJay/ios-charts có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho PhilJay/ios-charts. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
PhilJay/ios-charts có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho PhilJay/ios-charts. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
PhilJay/ios-charts còn đang phát triển không?
Commit gần nhất trên PhilJay/ios-charts là 10.4 năm trước (theo timestamp GitHub). Repo có 5 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
PhilJay/ios-charts dùng license gì?
PhilJay/ios-charts phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
PhilJay/ios-charts viết bằng ngôn ngữ gì?
PhilJay/ios-charts chủ yếu viết bằng Swift. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về ios-charts?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về ios-charts.