1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-29 05:10:05 +02:00

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