Added tooltips to each individual bar

This commit is contained in:
Daniel Cojocea committed 2024-08-22 20:15:49 -04:00
1 parent c3f964a2e2
commit ec79bcd500
3 files changed
+97 -18

No files matched your search

+2 -1
View File
@@ -43,7 +43,7 @@ export const formatDurationRounded = (ms) => {
return time;
};
export const formatDate = (date) => {
export const formatDate = (date, customOptions) => {
const options = {
year: "numeric",
month: "long",
@@ -51,6 +51,7 @@ export const formatDate = (date) => {
hour: "numeric",
minute: "numeric",
hour12: true,
...customOptions
};
// Return the date using the specified options