[+] Helper to register chartjs

pull/10/head
Azalea 2024-02-10 06:30:50 -05:00
parent 9478da81a9
commit 534e20a072
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
import {
Chart as ChartJS,
Title,
Tooltip,
Legend,
LineElement,
LinearScale,
PointElement,
CategoryScale, TimeScale,
} from 'chart.js';
export function title(t: string) {
document.title = `AquaNet - ${t}`
}
export function registerChart() {
ChartJS.register(
Title,
Tooltip,
Legend,
LineElement,
LinearScale,
PointElement,
CategoryScale,
TimeScale
);
}