Skip to content

Commit

Permalink
Don't show tooltip on the history view - there's no point
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjgalloway committed Sep 10, 2016
1 parent f8c20cb commit e9858a2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mysolarpvdivert/mysolarpvdivert.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,18 +736,6 @@ var app_mysolarpvdivert = {
$(".divert_total_generated_prc").html("-- %");
$(".total_export_prc").html("-- %");
}

// Show tooltip
var tooltip_items = [];

var date = new Date(item.datapoint[0]);
tooltip_items.push(["DATE", dateFormat(date, 'dd/mm/yy'), ""]);

for (i = 0; i < app_mysolarpvdivert.historyseries.length; i++) {
var series = app_mysolarpvdivert.historyseries[i];
tooltip_items.push([series.label.toUpperCase(), Math.abs(series.data[item.dataIndex][1]).toFixed(1), "kWh"]);
}
app_mysolarpvdivert.show_tooltip(pos.pageX+10, pos.pageY+5, tooltip_items);
} else {
// Hide tooltip
app_mysolarpvdivert.hide_tooltip();
Expand Down

0 comments on commit e9858a2

Please sign in to comment.