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

  1. 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

  1. Run 'pod setup' to install core-plot as pod on your local

Usage

  1. Create a UIView (with frame size you wish)
  2. Build a JSON structure with details of chart (look at examples for more)
  3. Initialize the chart type with this json (it returns back an instance of CPTGraphHostingView)
  4. Add the view returned to your view

Look at examples directory for detail usage options.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request