Skip to content

elventear/flot-framework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flot integration provides framework for integrating Flot into SproutCore framework.

The flot-integration directory is an example SproutCore application. If you have SproutCore installed and want to see the example, type:

  cd flot-integration
  sc-server
  
and go to http://localhost:4020/demo in your browser.

If you would like to add flot integration support to your existing app

  mkdir myapp_dir/frameworks
  cd flot-integration/frameworks
  cp -r flot myapp_dir/frameworks
  
and add this line to your Buildfile:

  config :all, :required => [:sproutcore, :flot]

restart server if necessary.

Now, you can create Flot views like this

  Flot.GraphView.design({
    layout: { left: 0, top: 0, height: 200, right: 0 } ,
    data: [
      SC.Object.create({label: 'set1', data:[[0,0], [1, 3], [2, 4]]}) ,
    ] ,
    options: SC.Object.create({
      // your options here
    })
  })

About

sproutcore snippets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%