Skip to content

Commit bd2b979

Browse files
committed
feat: hides tooltips
chore: deletes commented code
1 parent 3195d87 commit bd2b979

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

data.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
CategoryScale,
66
LinearScale
77
} from "chart.js/auto";
8+
89
import {
910
getAllAnswerValues,
1011
setAutoHeight
@@ -19,20 +20,6 @@ async function loadClientConfig() {
1920
return answers[answerLabel] || {};
2021
}
2122

22-
/**
23-
* we expect people to pass an answer that includes labels field and data field
24-
* {
25-
* labels: ['January', 'February', 'March', 'April', 'May'],
26-
* data: {
27-
datasets: [
28-
{
29-
data: [300, 300, 200]
30-
}
31-
]
32-
}
33-
* }
34-
*/
35-
3623
Chart.register(CategoryScale, LinearScale, PointElement, LineElement);
3724

3825
const options = {
@@ -55,7 +42,7 @@ const options = {
5542
display: false
5643
},
5744
ticks: {
58-
count: 2,
45+
count: 5,
5946
crossAlign: "near",
6047
font: {
6148
size: 16
@@ -64,6 +51,9 @@ const options = {
6451
}
6552
},
6653
plugins: {
54+
tooltip: {
55+
enabled: false
56+
},
6757
legend: {
6858
display: false
6959
}

0 commit comments

Comments
 (0)