Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fpgmaas committed Jul 2, 2024
1 parent 399e41e commit 309da8d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions frontend/app/components/ScatterPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Title,
LogarithmicScale,
CategoryScale,
FontSpec,
} from "chart.js";

Chart.register(
Expand Down Expand Up @@ -177,16 +178,16 @@ const ScatterPlot: React.FC<ScatterPlotProps> = ({ results }) => {
return `\nWeekly downloads: ${dataPoint.y.toLocaleString()}`;
},
},
titleFont: { size: 16, weight: "bold" },
bodyFont: { size: 14 },
footerFont: { size: 12 },
titleFont: { size: 16, weight: "bold" as FontSpec["weight"] },
bodyFont: { size: 14, weight: "normal" as FontSpec["weight"] },
footerFont: { size: 12, weight: "normal" as FontSpec["weight"] },
displayColors: false,
backgroundColor: "rgba(0, 0, 0, 0.8)",
padding: 10,
bodySpacing: 4,
titleAlign: "left",
bodyAlign: "left",
footerAlign: "left",
titleAlign: "left" as const,
bodyAlign: "left" as const,
footerAlign: "left" as const,
},
legend: {
display: false,
Expand Down Expand Up @@ -222,7 +223,7 @@ const ScatterPlot: React.FC<ScatterPlotProps> = ({ results }) => {
color: "#FFFFFF",
maxTicksLimit: 5,
},
type: "logarithmic",
type: "logarithmic" as const,
},
},
onClick: (event: any, elements: any) => {
Expand Down

0 comments on commit 309da8d

Please sign in to comment.