Skip to content

Commit

Permalink
Fixed the kWh display for mouseover in the bar graph.
Browse files Browse the repository at this point in the history
  • Loading branch information
gapintheclouds committed Aug 20, 2019
1 parent 6b6946f commit 8c09732
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/OpenEnergyMonitor/mysolarpv/mysolarpv.php
Original file line number Diff line number Diff line change
Expand Up @@ -759,12 +759,12 @@ function bargraph_events(){
$(".total_use_kwh").html((use_kwhd).toFixed(1));
}

$(".total_use_direct_kwh").html((solarused_kwhd).toFixed(1));
$("#total_use_direct_kwh").html((solarused_kwhd).toFixed(1));

$(".total_export_kwh").html((export_kwhd*-1).toFixed(1));
$("#total_export_kwh").html((export_kwhd*-1).toFixed(1));

$(".total_import_prc").html(((imported_kwhd/use_kwhd)*100).toFixed(0)+"%");
$(".total_import_kwh").html((imported_kwhd).toFixed(1));
$("#total_import_kwh").html((imported_kwhd).toFixed(1));

if (solar_kwhd > 0) {
$(".total_use_direct_prc").html(((solarused_kwhd/use_kwhd)*100).toFixed(0)+"%");
Expand Down

0 comments on commit 8c09732

Please sign in to comment.