Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudifa/barchartpkg
https://github.com/rudifa/barchartpkg
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rudifa/barchartpkg
- Owner: rudifa
- License: mit
- Created: 2020-03-17T21:37:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-17T21:46:40.000Z (almost 5 years ago)
- Last Synced: 2024-12-14T15:14:14.717Z (2 months ago)
- Language: Swift
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BarChart
This is an extremely light-weight, animatable bar chart. The main objective is to help iOS developers to learn how to create their own charts from scratch without using any third-party libraries.It is created along with a tutorial on Medium:
[Tutorial on Medium](https://medium.com/@leonardnguyen/build-your-own-chart-in-ios-part-1-bar-chart-e1b7f4789d70)# Demo

# Usage
```
let chart = BeautifulBarChart(frame: CGRect(x: 0, y: 0, width: 200, height: 300))
let dataEntries = [
DataEntry(color: UIColor.red, height: 0.2, textValue: "20", title: "Some title"),
DataEntry(color: UIColor.green, height: 0.7, textValue: "70", title: "Some title")
]
chart.updateDataEntries(dataEntries: dataEntries, animated: true)
self.view.addSubview(chart) // Assuming that you are writing this code inside a view controller
```# Authors
Minh Nguyen, [email protected]
# License
BarChart is available under the MIT license. See the LICENSE file for more info.