From 5bdbe4778a96047e5428c63439b290e95ba2177f Mon Sep 17 00:00:00 2001 From: Sean Date: Thu, 26 Mar 2020 16:31:49 +0100 Subject: [PATCH] Remove tooltips for charts Removes all hover-tooltips for charts Add detail link to motion poll chart --- client/src/app/shared/components/charts/charts.component.ts | 6 ++++++ .../assignment-poll/assignment-poll.component.html | 2 ++ .../motion-poll/motion-poll/motion-poll.component.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/client/src/app/shared/components/charts/charts.component.ts b/client/src/app/shared/components/charts/charts.component.ts index dd6754404..b0516cf2b 100644 --- a/client/src/app/shared/components/charts/charts.component.ts +++ b/client/src/app/shared/components/charts/charts.component.ts @@ -90,6 +90,9 @@ export class ChartsComponent extends BaseViewComponent { if (this.isCircle) { return { aspectRatio: 1, + tooltips: { + enabled: false + }, legend: { position: 'left' } @@ -97,6 +100,9 @@ export class ChartsComponent extends BaseViewComponent { } else { return { aspectRatio: 3, + tooltips: { + enabled: false + }, scales: { xAxes: [ { diff --git a/client/src/app/site/assignments/components/assignment-poll/assignment-poll.component.html b/client/src/app/site/assignments/components/assignment-poll/assignment-poll.component.html index a0133dc3e..c883c20bb 100644 --- a/client/src/app/site/assignments/components/assignment-poll/assignment-poll.component.html +++ b/client/src/app/site/assignments/components/assignment-poll/assignment-poll.component.html @@ -60,6 +60,8 @@
-
+