Latest 2.0
Homepage https://github.com/levigroker/GRKBarGraphView
License Creative Commons Attribution 4.0 International License
Platforms ios 7.0, requires ARC
Authors

Build Status
Version
[Platform]()
License

A UIView subclass which renders a one-item bar graph with an animatable percentage
property and configurable orientation, colors, etc. CALayers are used for drawing
efficiency and implicit animation.

Demo

Installing

If you’re using CocoPods it’s as simple as adding this to your Podfile:

pod 'GRKBarGraphView'

otherwise, simply add the contents of the GRKBarGraphView subdirectory to your project.

Documentation

GRKBarGraphView is to be used as you would any other UIView and will draw the bar graph
to fill its entire bounds. It looks best if relatively thin, as it has a one point border
by default.

The main API is documented in GRKBarGraphView.h but at its most basic:

GRKBarGraphView *graphView = ...
graphView.percent = 0.42f;

You can instantiate it as you would any other view, though it will use Autolayout
internally.

The color of the graph is determined by the tintColor of the view, but can be explicitly
configured, and it is capable of different colors for the bar and border.

Additional documentation is available in GRKBarGraphView.h and example usage
can be found in the GRKBarGraphViewTestApp source.

Licence

This work is licensed under the Creative Commons Attribution 4.0 International License.
Please see the included LICENSE.txt for complete details.

About

A professional iOS engineer by day, my name is Levi Brown. Authoring a blog
grokin.gs, I am reachable via:

Twitter @levigroker
Email [email protected]

Your constructive comments and feedback are always welcome.

Latest podspec

{
    "name": "GRKBarGraphView",
    "version": "2.0",
    "summary": "Renders a one-item bar graph with an animatable percentage property and configurable orientation, colors, etc.",
    "description": "A UIView subclass which renders a one-item bar graph with an animatable percentagenproperty and configurable orientation, colors, etc. CALayers are used for drawingnefficiency and implicit animation.",
    "homepage": "https://github.com/levigroker/GRKBarGraphView",
    "license": "Creative Commons Attribution 4.0 International License",
    "authors": {
        "Levi Brown": "[email protected]"
    },
    "social_media_url": "https://twitter.com/levigroker",
    "source": {
        "git": "https://github.com/levigroker/GRKBarGraphView.git",
        "tag": "2.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "GRKBarGraphView/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This