Implement chart tooltips

This commit is contained in:
2022-07-21 13:51:01 +01:00
parent 79b1f7676e
commit 8f6393b2ca
3 changed files with 36 additions and 28 deletions

View File

@@ -54,8 +54,9 @@ class Search(LoginRequiredMixin, View):
context["data"] = json.dumps(
[
{
"id": item.get("id"),
"value": item.get("sentiment", 0),
"text": item.get("msg", None) or item.get("id"),
"nick": item.get("nick", None),
"value": item.get("sentiment", None) or None,
"date": item.get("ts"),
}
for item in context["results"]