バージョン4.0.0、MPAndroidChart #f6a398bに同期
コアと
チャート/レルム
Charts
ChartsRealm
さて、Android開発者の間で非常に人気があるPhilipp JahodaによるMPAndroidChartと呼ばれるこの美しいライブラリがありますが、iOS用のチャートを作成するためのまともなソリューションはありませんでした。
コンパイラによって高度に最適化でき、プロジェクトの両方で使用できるため、書き込むことを選択しました。デモプロジェクトは、それがどのように機能するかを示すために書かれています。
Swift
Swift
ObjC
ObjC
Android、iOS、tvOS、macOS用のこのライブラリの驚くべき機能は、学習曲線がシングルトンであるため、両方のプラットフォームで開発するときに時間を節約できることです-それは一度だけ発生し、コードは非常に似ているため、開発者は別のライブラリで同じ出力を生成するためにアプリを再発明する必要はありません。(そして、それは現在そこに本当に別の良い選択がないという事実さえ考慮していません...)
ChartsDemo/ChartsDemo.xcodeprojは iOS/tvOS のデモプロジェクトです。
ChartsDemo-OSX/ChartsDemo-OSX.xcodeprojmacOSのデモプロジェクトです
carthage checkout
正しくコンパイルするには:
Charts.xcodeproj
@import Charts
ChartsRealm
チュートリアルをここに表示したいですか?PR を作成してください。
ポッドファイルに追加します。「チャート」はライブラリの名前です。
Realmのサポートについては、追加してください。
pod 'Charts'
pod 'ChartsRealm'
注:は正しいライブラリではなく、他の誰かによる別のプロジェクトを参照しています。ポッドの「ios-charts」
チャートに Carthage のビルド済みバイナリが含まれるようになりました。
github "danielgindi/Charts" == 4.1.0
github "danielgindi/Charts" ~> 4.1.0
In order to build the binaries for a new release, use
carthage build --no-skip-current && carthage archive Charts
.
Swift Package Manager InstallSwift Package Manager
dependencies: [
.package(url: "https://github.com/danielgindi/Charts.git", .upToNextMajor(from: "4.1.0"))
]
3rd party bindingsXamarin (by @Flash3001): iOS - GitHub/NuGet. Android - GitHub/NuGet.
HelpIf 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-chartstag
Core features:
Chart types:
Screenshots are currently taken from the original repository, as they render exactly the same :-)
BarChart (with legend, simple design)
Currently there's no need for documentation for the iOS/tvOS/macOS 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 Charts Demo project in both Objective-C and Swift (ChartsDemo-iOS, as well as macOS ChartsDemo-macOS) 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.
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
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.