mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
adding in plot-line graph
This commit is contained in:
parent
3fbb873235
commit
23f75a5f7e
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user