mirror of https://github.com/hykilpikonna/AquaDX
[+] Helper to register chartjs
parent
9478da81a9
commit
534e20a072
|
@ -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…
Reference in New Issue