| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Add GraphView (.h and .m) and GraphViewCore (.h and .m)
import "GraphView.h"
@property (strong, nonatomic) GraphView *graphView;
_graphView = [[GraphView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, self.view.frame.size.width, self.view.frame.size.height)];
(Optional, default is black).
Color of the graph (Lines and numbers).
(Required, GraphView will not work if else).
Array for the graph.
(Optional, default is NO).
Determines if the graph should be filled with gradient. You can set your own gradient (Default is gray), in GraphView.h. It´s defined as GRADIENT_FILL, the first four numbers is color one, the others is color two (RGBA numbers).
(Optional, default is 2.0f).
Line dash for the lines in the graph. Set this to 0.0f for clean lines.
Example: 0.50 is in the middle of the graph, 0.90 is almost at the top, 0.10 at the bottom.
Example: [_graphView updateGraph]; You could update all the other properties before you call [_graphView updateGraph];, in that way you can self determine how your graph should look and be at any time.
define GRAPH_HEIGHT self.frame.size.height.
define GRAPH_WIDTH self.frame.size.width.
define OFFSET_X 10.0f.
Offset x, set this to higher if you want more space at the side.
Offset y, set this to higher if you want more space at the bottom.
Width of cells.
Height of cells.
define GRAPH_TOP 0.0f.
define CIRCLE_RADIUS 1.5f.
Radius of dots on the graph.
Set Gradient of choice!
| Back | FazBrowse Home | New Git URL |