feat: migrated from chart.js to google-charts

This commit is contained in:
2023-06-10 21:17:16 -03:00
parent e7149f53ff
commit db0d493944
13 changed files with 265 additions and 42 deletions

21
lib/types.d.ts vendored
View File

@@ -1,4 +1,23 @@
export interface Tab {
title: string;
id: string;
title: string;
}
interface Currency {
id: string;
label: string;
}
interface Category {
label: string;
backgroundColor: string;
}
export interface UserSpendData {
category: Category;
currency: Currency;
date: Date;
value: number;
}
export type PieCircleData = Array<[[string, number], { backgroundColor: string; label: string }]>;