joyplots working

This commit is contained in:
Colin Megill
2017-09-06 22:19:55 -07:00
parent 129ffa1ec6
commit 0e36aaf830
20 changed files with 680 additions and 146 deletions
+37
View File
@@ -0,0 +1,37 @@
import React from 'react';
import _ from "lodash";
// import styles from "./joy.css";
// import drawGraph from "./drawGraph";
// import joyParser from "./joyParser";
class Graph extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
componentWillReceiveProps(nextProps) {
if (nextProps.data) {
console.log('graph data 55', nextProps.data)
// drawGraph(graphParser(nextProps.data));
}
}
componentDidMount() {
}
render() {
return (
<div id="joyplot_wrapper" style={{marginTop: 50}}>
<h3> Graph </h3>
<div id="joyplot"> </div>
</div>
)
}
};
export default Graph;