simple deom of using a d3 reusable chart with derby
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
styles
ui
views
.gitignore
README.md
barchart.png
package.json
server.js

README.md

derby-barchart

This simple app shows how to make a derby component out of a reusable chart.

The reusable chart was ported from this Backbone example: http://bl.ocks.org/milroc/5522467

You can take advantage of the powerful parts of d3 while making all your data react in real-time with derby/racer!

Screenshot

Usage

npm install
node server

now open your browser to http://localhost:3030/

Interesting areas of the code:

Not much was modified from the standard derby new project

Component:
/ui/barchart/index.js
/ui/barchart/index.html

App code:
/src/app/index.js
/view/app/index.html

Styles:
/styles/app/index.styl