
AAInfographics
English Document ๐ฌ๐ง | ็ฎไฝไธญๆๆๆกฃ ๐จ๐ณ
There is the link of Objective-C version of AAChartKit as follow
https://github.com/AAChartModel/AAChartKit
Preface
AAInfographics is the Swift language version of AAChartKit which is object-oriented, a set of easy-to-use, extremely elegant graphics drawing controls,based on the popular open source front-end chart library Highcharts. It makes it very fast to add interactive charts to your mobile projects. It supports single touch-drag for data inspection, multi-touch for zooming, and advanced responsiveness for your apps .
Features
๐ Environment friendly. Support
iOSใiPadOSandmacOS. Totally supportSwiftlanguage, and there are more types version such asObjective-Clanguage version AAChartKit ใJavalanguage version AAChartCore ใKotlinlanguage version AAInfographics . To get more details you can see the source code links list.๐ Powerful and easy to use. It supports
column chart,bar chart,area chart,areaspline chart,line chart,spline chart,radar chart,polar chart,pie chart,bubble chart,packedbubble chart,pyramid chart,funnel chart,columnpyramid chart,columnrange chart,arearange chart,mixed chartand other graphics. Support for more chart types is planned.๐ Modern Declarative Syntax. Unlike previous imperative programming techniques, drawing any custom chart in AAChartKit, you don't need to care about the inner implementation details which is annoying && boring. Describe what you want, you will get what you described.
๐ฎ Interactive and animated. The charts
animationeffect is exquisite, delicate, smooth and beautiful.โ Chain programming. Supports
chain programming syntaxlike SwiftUI and Jetpack Compose.๐ฆ Minimalist.
AAChartView + AAChartModel = Chart. The AAInfographics follows a minimalist formula: Chart view + Chart model = The chart you want, just like the powerful and beautiful charts framework AAChartKit.๐ฑ Interaction event callback. Support for monitoring user click events and single finger move over events, which can be used to achieve double charts linked-working and even multiple charts linkage, as well as other more complex custom user interaction effects.
Appreciation
| Column Chart | Column Range Chart | Area Chart |
|---|---|---|
![]() |
![]() |
![]() |
| Line Chart | Step Area Chart | Step Line Chart |
|---|---|---|
![]() |
![]() |
![]() |
| Spline Chart | Areaspline Chart | Stacked Polar Chart |
|---|---|---|
![]() |
![]() |
![]() |
| Bubble Chart | Arearange Average Value Chart | Column Mixed Line Chart |
|---|---|---|
![]() |
![]() |
![]() |
| Scatter Chart | Boxplot Chart | Mirror Column Chart |
|---|---|---|
![]() |
![]() |
![]() |
Installation
CocoaPods (recommended)
- Add following content
pod 'AAInfographics', :git => 'https://github.com/AAChartModel/AAChartKit-Swift.git'
to your project Podfile.
- Run
pod installorpod update. - Import
AAInfographics.
Swift Package Manager
- In Xcode, select
File > Add Package Dependencies... - Enter the package URL:
https://github.com/AAChartModel/AAChartKit-Swift.git
- Select version
9.5.0or later. - Add the
AAInfographicsproduct to your target.
If you use Package.swift, add the dependency like this:
dependencies: [
.package(url: "https://github.com/AAChartModel/AAChartKit-Swift.git", from: "9.5.0")
],
targets: [
.target(
name: "YourTarget",
dependencies: [
.product(name: "AAInfographics", package: "AAChartKit-Swift")
]
)
]
Carthage
- Add following content
github "https://github.com/AAChartModel/AAChartKit-Swift.git" ~> 9.5
to your project Cartfile.
- Run
carthage bootstrap --use-xcframeworksorcarthage update --use-xcframeworks. - Link
AAInfographics.xcframeworkto your app target. - Import
AAInfographics.
Manually (old school way)
- Download whole project demo of
AAInfographicsDemo - Drag the folder
AAInfographicsinto your project.
Usage
- Creat the instance object of chart view:
AAChartView
let chartViewWidth = self.view.frame.size.width
let chartViewHeight = self.view.frame.size.height
aaChartView = AAChartView()
aaChartView?.frame = CGRect(x: 0,
y: 60,
width: chartViewWidth,
height: chartViewHeight)
// set the content height of aachartView
// aaChartView?.contentHeight = self.view.frame.size.height
self.view.addSubview(aaChartView!)
- Configure the properties of














