Skip to content

djtech42/BGKLineChartView

Repository files navigation

BGKLineChartView

Simple implementation of a line chart for iOS.

Carthage compatible

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.

This framework aims to accomplish the following:

  • 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

It does not have the goal of:

  • Replacing current well documented and supported charting frameworks that provide robust customization

Installation

This project supports Carthage.

Simply add brendenk1/BGKLineChartView to your Cartfile.

Carthage instructions if you have never used Carthage before.

How to Use

  1. Add BGKLineChartView as a subview to a view.
  2. Create a class that conforms to BGKLineChartDataSource protocol.
  3. Set conforming BGKLineChartDataSource class to BGKLineChartView.dataSource property.

You may wish to view the example project in the LineChartExample folder.

License

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.

About

Simple implementation of a line chart for iOS.

Resources

Stars

Watchers

Forks

Packages

No packages published