일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- ios
- Python
- kotlin
- UITableView
- graph
- androidstudio
- cocoapods
- ui
- charts
- PyQt
- modal
- Xcode
- alamofire
- 개발자
- Android
- Storyboard
- button
- 어플리케이션
- Apple
- TableView
- Chrats
- UIButton
- 개발
- Chart
- 라이브러리
- library
- 그래프
- Swift
- PyQt5
- UIKit
Archives
- Today
- Total
Jiwift
[iOS/Swift] DGCharts 그래프 라이브러리 lineDashLengths | line graph dash, 라인 그래프 점선, 길이 본문
라이브러리/DGCharts
[iOS/Swift] DGCharts 그래프 라이브러리 lineDashLengths | line graph dash, 라인 그래프 점선, 길이
지위프트 2023. 1. 13. 03:03반응형

// 라인 Dash 길이
lineChartdataSet.lineDashLengths = [10]
적용을 원하는 라인 그래프 데이터 셋에 위 메서드를 적용해주세요.

/// This is the actual dash pattern.
/// I.e. [2, 3] will paint [-- -- ]
/// [1, 3, 4, 2] will paint [- ---- - ---- ]
// 라인 Dash 길이
lineChartdataSet.lineDashLengths = [5, 10, 15]
Array 형식을 채워주면 위와 같이 적용됩니다. Array 순서로 선과 공백 길이를 적용 [5, 10, 15]는 [5선, 10공백, 15선] 방식으로 반복 전용
SwiftExample/LineChartViewController.swift at main · wlxo0401/SwiftExample (github.com)
GitHub - wlxo0401/SwiftExample: My study, record and share
My study, record and share. Contribute to wlxo0401/SwiftExample development by creating an account on GitHub.
github.com
반응형