Skip to content

Commit

Permalink
feat: hides tooltips
Browse files Browse the repository at this point in the history
chore: deletes commented code
  • Loading branch information
Kwayzaar committed Nov 19, 2024
1 parent 3195d87 commit bd2b979
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
CategoryScale,
LinearScale
} from "chart.js/auto";

import {
getAllAnswerValues,
setAutoHeight
Expand All @@ -19,20 +20,6 @@ async function loadClientConfig() {
return answers[answerLabel] || {};
}

/**
* we expect people to pass an answer that includes labels field and data field
* {
* labels: ['January', 'February', 'March', 'April', 'May'],
* data: {
datasets: [
{
data: [300, 300, 200]
}
]
}
* }
*/

Chart.register(CategoryScale, LinearScale, PointElement, LineElement);

const options = {
Expand All @@ -55,7 +42,7 @@ const options = {
display: false
},
ticks: {
count: 2,
count: 5,
crossAlign: "near",
font: {
size: 16
Expand All @@ -64,6 +51,9 @@ const options = {
}
},
plugins: {
tooltip: {
enabled: false
},
legend: {
display: false
}
Expand Down

0 comments on commit bd2b979

Please sign in to comment.