energy spline stack

This commit is contained in:
Eric Hulburd
2016-02-15 16:09:40 -06:00
parent 1758fce5a4
commit 9ea4a8ebe9
7 changed files with 106 additions and 141 deletions

View File

@@ -3,7 +3,7 @@
<div class="alert alert-warning" rt-if="this.state.loading_data">
Retrieving power data for the {this.props.house.name} household...
</div>
<table>
<table rt-if="this.props.view === 'table'" class="table">
<thead>
<tr>
<th></th>
@@ -13,7 +13,7 @@
</tr>
</thead>
<tbody>
<tr rt-repeat="power_datum in this.state.house.power_data" key="{power_datum.react_key}">
<tr rt-repeat="power_datum in this.props.house.power_data" key="{power_datum.react_key}">
<td></td>
<td>{power_datum.time_to_s}</td>
<td>{power_datum.consumption_to_s}</td>
@@ -21,5 +21,5 @@
</tr>
</tbody>
</table>
<div id="power_data"></div>
<div rt-if="this.props.view === 'graph'" id="power_graph"></div>
</div>