Ben's Sandbox
  • Projects
  • Tags

Integrating Flot Graphs in a Backbone View


View Blog   View Source  
Example that demostrates how to transform a Backbone Collection inside a View into a dataset that can be used by Flot to generate a graph. The goal was to build something that was relatively reusable such that other the columns used in the graph could be switched or other datasets could be plugged in. The Series options below allow you to swap the x-axis and series groups or turn off the series stacking entirely.

Gross by Year/Studio

Series:

© Ben Olson 2012 with help from Jekyll Bootstrap and Twitter Bootstrap