Created
March 8, 2015 07:29
-
-
Save boucher/2213644b2b627ed4aa36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx React.DOM */ | |
var React = require('react'); | |
var rd3 = require("react-d3"); | |
var LineGraph = rd3.LineChart; | |
var App = React.createClass({ | |
render: function() { | |
var lineData = [{"name":"Series 1","values":[{"x":0,"y":0},{"x":1,"y":1},{"x":2,"y":2},{"x":3,"y":3},{"x":4,"y":4},{"x":5,"y":5}]}]; | |
return <LineGraph data={ lineData } width={ 672 } height = { 300 } /> | |
} | |
}); | |
module.exports = App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment