diff --git a/AquaNet/src/libs/ui.ts b/AquaNet/src/libs/ui.ts new file mode 100644 index 00000000..c25b6aaf --- /dev/null +++ b/AquaNet/src/libs/ui.ts @@ -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 + ); +} \ No newline at end of file