Mercurial > public > stock-charts
view README.md @ 22:5c9f74baee88
Update README.md
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Fri, 30 Apr 2021 17:41:57 +0200 |
parents | 5135ff3343ae |
children | cf68e93882b4 |
line wrap: on
line source
# SwiftUI Interactive Charts Swift package for displaying interactive stock charts easily 🎉 ## Features - Interactive line chart - Light weight - Easy to use ## Requirements - iOS 14+ - Swift 5+ ## Instalation - In Xcode go to `File` -> `Swift packages` -> `Add package dependency` - Copy and paste `https://github.com/denniscm190/StockCharts.git` ## Usage `import StockCharts` ### Line chart ```swift ChartView(data: [Double], dates: [String]?, hours: [String]?) ``` #### Arguments ```swift data: [120.3, 121.0, 132.4, ...] dates: ["yyyy-MM-dd", "2021-01-01", "2021-01-02", ...] hours: ["10:20", "10:21", "10:22", ...] // It could be any format ```