Skip to content

A UIView-based customizable bar graph with variable amount of bars and scale.

Notifications You must be signed in to change notification settings

mevdev/RLSimpleBarGraph

Repository files navigation

RLSimpleBarGraph

A UIView-based simple bar graph.

Screenshot

features:

  • A very simple bar graph
  • variable amount of bars and scale labels
  • ARC
  • Easy to customize
  • Auto-risizes
  • Storyboard compatible

Installation

Import in RLSimpleBarGraph.h and .m

Usage

Import header.

#import "RLSimpleBarGraph.h"

Initialize

####1. For Storyboards drag over a UIView. ####2. Select the UIView and go to the identity inspector (newspaper looking thing) and change the class to 'RLSimpleBarGraph'. Drop in this code and connect the variable in IB by control-dragging from the view Controller (the orange with a bandaid) to the UIView (well, you know what I mean).

In viewController header:

RLSimpleBarGraph IBOutlet *yourRLSimpleBarGraph;

####3. In your viewWillAppear: put something like this for the most simple version.

-(void)viewWillAppear: …
    [yourRLSimpleBarGraph basicInit: @[@1,@2,@4,@6,@8,@10,@3]];

Contact

Robert

License

See LICENSE.

About

A UIView-based customizable bar graph with variable amount of bars and scale.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published