feat(device/detail): update BinarySensors component, add Chart component for sensor data visualization and add update-iconfont.sh
This commit is contained in:
22
src/utils/chart.ts
Normal file
22
src/utils/chart.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import {
|
||||
BarElement,
|
||||
CategoryScale,
|
||||
Chart as ChartJS,
|
||||
Filler,
|
||||
Legend,
|
||||
LinearScale,
|
||||
LineElement,
|
||||
PointElement,
|
||||
Tooltip,
|
||||
} from 'chart.js';
|
||||
|
||||
ChartJS.register(
|
||||
CategoryScale,
|
||||
LinearScale,
|
||||
PointElement,
|
||||
LineElement,
|
||||
BarElement,
|
||||
Filler,
|
||||
Tooltip,
|
||||
Legend,
|
||||
);
|
||||
Reference in New Issue
Block a user