프로젝트
GitHub에서 보기
spacenation/swiftui-charts
소개
:rocket: 스타일을 사용자 지정할 수 있는 SwiftUI 차트
데이터 및 분석측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSwiftUI Charts
Build custom charts with SwiftUI
Styles
Line
Chart(data: [0.1, 0.3, 0.2, 0.5, 0.4, 0.9, 0.1])
.chartStyle(
LineChartStyle(.quadCurve, lineColor: .blue, lineWidth: 5)
)
Area
Chart(data: [0.1, 0.3, 0.2, 0.5, 0.4, 0.9, 0.1])
.chartStyle(
AreaChartStyle(.quadCurve, fill:
LinearGradient(gradient: .init(colors: [Color.blue.opacity(0.2), Color.blue.opacity(0.05)]), startPoint: .top, endPoint: .bottom)
)
)
Stacked Area
Chart(data: matrix)
.chartStyle(
StackedAreaChartStyle(.quadCurve, colors: [.yellow, .orange, .red])
)
Column
Chart(data: [0.1, 0.3, 0.2, 0.5, 0.4, 0.9, 0.1])
.chartStyle(
ColumnChartStyle(column: Capsule().foregroundColor(.green), spacing: 2)
)
Stacked Column
Chart(data: matrix)
.chartStyle(
StackedColumnChartStyle(spacing: 2, cornerRadius: 3, colors: [.yellow, .orange, .red])
)
Install
Add Charts to your project with Swift Package Manager
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "YOUR_PROJECT",
dependencies: [
.package(url: "https://github.com/spacenation/swiftui-charts.git", from: "1.0.0"),
]
)
Roadmap
- Bar chart style
Code Contributions
Feel free to contribute via fork/pull request to master branch. If you want to request a feature or report a bug please start a new issue.
관련 프로젝트 살펴보기
불러오는 중…