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'
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 a pod
Usage
- Create a UIView (with whatever frame size you wish)
- Build a JSON structure with the details of the 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 the 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