Giter Club home page Giter Club logo

motion-plot's Introduction

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'

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 a pod

Usage

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

motion-plot's People

Contributors

alexrothenberg avatar pschlund avatar steve384 avatar toamitkumar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

motion-plot's Issues

Can't run samples from parent directory

Hello, I tried running rake from parent directory and I get:
Terminating app due to uncaught exception 'NameError', reason: 'app_delegate.rb:7:in `application:didFinishLaunchingWithOptions:': uninitialized constant AppDelegate::GraphHostingView (NameError)

examples do not work?

could you confirm, motion-plot examples (and the gem in general) do not work with:
RM 2.14, iOS 7, Core-Plot 1.4

Thanks

Changing Bar color is not working

Possible to change default bar colors?
i'm trying using below code but still getting default colors

series: [{
        name: 'Profit',
        data: @data1,
        style: {
          color: "e6b7b7",
          width: 0.25
        }
      }, {
        name: 'Loss',
        data: @data2,
        color: "b2eab2"
      }]

Also is there any option to format yAxis number to 10K or 1M ?

Thanks

Build is incredibly slow after install and fails

After adding to my Gemfile and running bundle install, it takes my app 2:13 to (try to) build, and I get these errors:

2013-06-04 15:49:34.524 ruby[98061:f0f] unrecognized runtime type `?' (TypeError)
Can't compile stub for selector `setLineWidth:': unrecognized runtime type `?' (TypeError)
2013-06-04 15:49:34.526 ruby[98054:f0f] unrecognized runtime type `?' (TypeError)
Can't compile stub for selector `setCornerRadius:': unrecognized runtime type `?' (TypeError)
2013-06-04 15:49:34.531 ruby[98030:f0f] unrecognized runtime type `?' (TypeError)
Can't compile stub for selector `setFontSize:': unrecognized runtime type `?' (TypeError)
2013-06-04 15:49:34.536 ruby[98063:f0f] unrecognized runtime type `?' (TypeError)
Can't compile stub for selector `setAngle:': unrecognized runtime type `?' (TypeError)
2013-06-04 15:49:34.537 ruby[98031:f0f] unrecognized runtime type `{CGSize=??}' (TypeError)
unrecognized runtime type `{CGSize=??}' (TypeError)
rake aborted!
Command failed with status (1): [/usr/bin/env VM_KERNEL_PATH="/Library/Ruby...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.