forked from Cookies_Public/AquaDX
[+] Helper to register chartjs
This commit is contained in:
parent
9478da81a9
commit
534e20a072
27
AquaNet/src/libs/ui.ts
Normal file
27
AquaNet/src/libs/ui.ts
Normal 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
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user