adding in plot-line graph

This commit is contained in:
Alex Windett 2016-11-03 15:14:31 +00:00 committed by Sérgio Ramos
parent 3fbb873235
commit 23f75a5f7e

View File

@ -29,7 +29,7 @@ const Graph = React.createClass({
const graphTypes = [ const graphTypes = [
{ {
type: 'scatter', type: 'scatter',
mode: 'markers' mode: 'lines+markers'
}, },
{ {
type: 'scatter', type: 'scatter',
@ -43,6 +43,7 @@ const Graph = React.createClass({
const graphs = graphTypes.map( (graphType, i) => { const graphs = graphTypes.map( (graphType, i) => {
return ( return (
<Plot <Plot
key={i}
name={`plot-${i}`} name={`plot-${i}`}
xData={this.state.datatime} xData={this.state.datatime}
yData={this.state.cpu} yData={this.state.cpu}