create irradiance composite graph

This commit is contained in:
Eric Hulburd
2016-03-11 17:38:03 -06:00
parent 2dd9389694
commit 782f5cbf91
32 changed files with 824 additions and 379 deletions

View File

@@ -1,8 +1,8 @@
import React from 'react';
import Templates from 'config/templates';
import c3 from 'c3';
import House from './../../../models/house';
import c3 from 'c3';
class GraphComponent extends React.Component {
@@ -21,7 +21,7 @@ class GraphComponent extends React.Component {
componentDidUpdate(prev_props, prev_state){
var power_graph = this;
if (prev_props.house != power_graph.props.house || prev_props.power_range != power_graph.props.power_range){
if (prev_props.house != power_graph.props.house || prev_props.date_interval != power_graph.props.date_interval){
power_graph.updateGraph();
}
}