Simple implementation of a line chart for iOS.
I believe that majority of the time I am not in need of a complex custom chart, but really a simple - straight forward line chart. When boiling down my use cases I found that majority of my needs were for a chart to display it's extents, and to graphically show data inside of its extents.
- Simple UI by limiting complex UI elements and styles, yet provide a thoughtful approach to styling
- Lightweight API with a focus on reducing complex object maps
- API pattern familiar to and common to iOS developers
- Replacing current well documented and supported charting frameworks that provide robust customization
This project supports Carthage.
Simply add brendenk1/BGKLineChartView
to your Cartfile.
Carthage instructions if you have never used Carthage before.
- Add
BGKLineChartView
as a subview to a view. - Create a class that conforms to
BGKLineChartDataSource
protocol. - Set conforming
BGKLineChartDataSource
class toBGKLineChartView.dataSource
property.
You may wish to view the example project in the LineChartExample
folder.
Copyright 2016 Brenden Konnagan
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.