diff --git a/mood/static/mood/dashboard.js b/mood/static/mood/dashboard.js
index bc10dd1..df6c509 100644
--- a/mood/static/mood/dashboard.js
+++ b/mood/static/mood/dashboard.js
@@ -28,7 +28,6 @@ fetch("/mood/statistics/heatmap/values/")
}
return 0;
},
- value: "count",
},
scale: {
color: {
@@ -77,7 +76,7 @@ fetch("/mood/statistics/heatmap/values/")
const key = Object.keys(moodOptions).reduce((a, b) => Math.abs(moodOptions[a] - average) < Math.abs(moodOptions[b] - average) ? a : b);
const mood = moodOptions[key];
- return `${date_str}
Mood Count: ${value}
Average Mood: ${mood.name}`
+ return `${date_str}
Mood Count: ${obj.count}
Average Mood: ${mood.name}`
}
}
]