Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Interface Initialization & Reload Data #1

Merged
merged 9 commits into from Jan 4, 2014

Conversation

Sam-Spencer
Copy link
Collaborator

Interface Initialization

Added initializer so that the line chart could be added via Storyboard (in addition to programmatically). Now uses both initWithFrame: and initWithCoder:, as opposed to only initWithFrame:. This allows the graph to be setup completely in the interface. The delegate property was also changed to an IBOutlet so that it could be set from the interface (it can still be set programmatically too).

Reloading Data

Added new reloadGraph method. This new method will reload the data source of graph, and all of its properties. This allows for more dynamic graphs that change after they've been created. The reloadGraph method is almost identical (in functionality) to the UITableView method reloadData.

Sample App

The sample app has been updated to reflect the changes made above. In the update sample app, the graph is setup using the interface. A Refresh button and Refresh Settings have also been added to exhibit the capabilities of the reloadGraph method.

Documentation

Also made documentation improvements. Regular code comments have been converted to documentation comments. Plus, improvements have been made to the Readme.md to describe (in better formatting and detail) how BEMSimpleLineGraph works.

Note on File Duplicates

While reviewing the pull request you may notice that a substantial number of files were deleted. Don't worry though, nothing really got deleted. I simply removed duplicate files and then relinked everything in Xcode. So now when you modify the files in the sample app, you don't need to copy the changes to the external folder (or vice versa). Now there's only one file to change, not two.

A BIG Thanks

And thank you for this fantastic project! This is definitely one of the best line graph projects available on GitHub, or anywhere. Thanks for project and the work that you put into it. I'll be using it in one of my upcoming apps! Keep it up!

iRare Media added 9 commits January 3, 2014 19:07
Added initializer so that the line chart could be added via Storyboard (in addition to programmatically). Documentation Improvements (Code-Comments converted to documentation comments). Improved Sample App.
Fixed references to project files so that it is only necessary to modify a single file (instead of having duplicates).
Added delegate as interface property. Improved init method. Fixed reload data bugs. Improved sample app.
Major Readme Improvements to both the documentation and the formatting.
Boris-Em added a commit that referenced this pull request Jan 4, 2014
Interface Initialization & Reload Data
@Boris-Em Boris-Em merged commit 0c9c8f6 into Boris-Em:master Jan 4, 2014
@Boris-Em
Copy link
Owner

Boris-Em commented Jan 4, 2014

Thank you so much! Great pull request. I'm truly happy that BEMSimpleLineGraph will be useful to you and that you liked it!

skywinder referenced this pull request in skywinder/BEMSimpleLineGraph Oct 27, 2014
update travis script to avoid "exited with 134"
Boris-Em pushed a commit that referenced this pull request Jul 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants