diff --git a/index.html b/index.html
index f0b9724..3e05a00 100644
--- a/index.html
+++ b/index.html
@@ -245,7 +245,7 @@
-
+
@@ -493,11 +493,11 @@
Object.keys(data.actualTotals).forEach((user, index)=>{
advStats += '
'+data.usersName[user]+' '+(lastWeekByUser[user]/lastWeekTotal)*100+'%';
Piedata.push({ label: "", data: Math.floor(data.actualTotals[user]) });
- variance += (data.actualTotals[user] - data.average)^2;
+ variance += Math.pow(data.actualTotals[user] - data.average, 2);
});
variance = variance/data.users.length;
- $('a-balance').html(variance.toFixed(2));
+ $('#a-balance').html(variance.toFixed(2));
chartOptions = {
series: {
pie: {
diff --git a/plugins/c3-chart/c3.custom.js b/plugins/c3-chart/c3.custom.js
index 76e9d5b..2683df2 100644
--- a/plugins/c3-chart/c3.custom.js
+++ b/plugins/c3-chart/c3.custom.js
@@ -268,4 +268,4 @@ chart5=c3.generate( {
}
}
-);
\ No newline at end of file
+);