Inherits from UIViewController
Conforms to CPTPlotDataSource
Declared in ChartsViewController.h
ChartsViewController.m

Properties

hostView

@property (nonatomic, strong) CPTGraphHostingView *hostView

passedScheduledGame

@property (nonatomic, assign) ScheduleModel *passedScheduledGame

selectedTheme

@property (nonatomic, strong) CPTTheme *selectedTheme

Instance Methods

configureChart

Core Plot Chart Initialization.

- (void)configureChart

Declared In

ChartsViewController.m

configureGraph

Core Plot Graph Initialization.

- (void)configureGraph

Declared In

ChartsViewController.m

configureHost

Core Plot Host View Initialization.

- (void)configureHost

Declared In

ChartsViewController.m

configureLegend

Core Plot Legend Initialization.

- (void)configureLegend

Declared In

ChartsViewController.m

dataLabelForPlot:recordIndex:

Core Plot delegate to get the Labels to Plot.

- (CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index

Parameters

plot

The Plot

index

Index to Plot

Return Value

Layer to Plot

Declared In

ChartsViewController.m

didReceiveMemoryWarning

Standard iOS delegate when memory warning.

- (void)didReceiveMemoryWarning

Return Value

<#return value description#>

Declared In

ChartsViewController.m

didRotateFromInterfaceOrientation:

Standard iOS delegate when this view is finished rotated.

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation

Parameters

toInterfaceOrientation

Orientation being displayed

duration

Duration of orientation

Declared In

ChartsViewController.m

getChartData

Core Plot Initialization.

- (void)getChartData

Declared In

ChartsViewController.m

initPlot

Core Plot Initialization.

- (void)initPlot

Declared In

ChartsViewController.m

legendTitleForPieChart:recordIndex:

Core Plot delegate to get the Title to Plot.

- (NSString *)legendTitleForPieChart:(CPTPieChart *)pieChart recordIndex:(NSUInteger)index

Parameters

pieChart

The Pie Chart Plot

index

Index to Plot

Return Value

Title Plot

Declared In

ChartsViewController.m

numberForPlot:field:recordIndex:

Core Plot delegate to get the Record to Plot.

- (NSNumber *)numberForPlot:(CPTPlot *)plot field:(NSUInteger)fieldEnum recordIndex:(NSUInteger)index

Parameters

plot

The Plot

fieldEnum

Field to Plot

index

Index to Plot

Return Value

number to Plot

Declared In

ChartsViewController.m

numberOfRecordsForPlot:

Core Plot delegate to get number of Records to Plot.

- (NSUInteger)numberOfRecordsForPlot:(CPTPlot *)plot

Parameters

plot

The Plot

Return Value

number of Records to Plot

Declared In

ChartsViewController.m

onClickSelectChart:

Button handler for the Chart Select Segment button.

- (IBAction)onClickSelectChart:(UISegmentedControl *)sender

Parameters

sender

The sender for the Event

Declared In

ChartsViewController.m

supportedInterfaceOrientations

Standard iOS delegate to get the allowed orientation of the application.

- (NSUInteger)supportedInterfaceOrientations

Return Value

<#return value description#>

Declared In

ChartsViewController.m

viewDidLoad

Load and initialize the Controller for the Charts View.

- (void)viewDidLoad

Declared In

ChartsViewController.m

viewWillAppear:

Standard iOS delegate when this view is displayed.

- (void)viewWillAppear:(BOOL)animated

Parameters

animated

animated If animated view

Declared In

ChartsViewController.m