Motion::Plot
Create native iOS charts using simple JSON as you are used-to with Highcharts like JS library. This library is a wrapper on top of CorePlot, the iOS plotting framework to build native chart using CoreAnimation, Core Data and Cocoa Bindings
Installation
Add this line to your application's Gemfile:
gem 'motion-plot'
And then execute:
$ bundle
Or install it yourself as:
$ gem install motion-plot
And add require 'motion-plot'
to your Gemfile
- Run 'pod setup' to install core-plot as pod on your local
Usage
- Create a UIView (with frame size you wish)
- Build a JSON structure with details of chart (look at examples for more)
- Initialize the chart type with this json (it returns back an instance of CPTGraphHostingView)
- Add the view returned to your view
Look at examples directory for detail usage options.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request