Skip to content

Instantly share code, notes, and snippets.

@boucher
Created March 8, 2015 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boucher/2213644b2b627ed4aa36 to your computer and use it in GitHub Desktop.
Save boucher/2213644b2b627ed4aa36 to your computer and use it in GitHub Desktop.
/** @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