fix column name date bug

This commit is contained in:
Francis Cao committed 2023-04-10 09:44:25 -07:00
1 parent f84e41e198
commit f5f6dc052e
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -181,8 +181,8 @@ export function getDateArray(data, startDate, endDate, unit) {
const n = diff(endDate, startDate) + 1;
function findData(date) {
const d = data.find(({ x, t }) => {
return normalize(getDateFromString(x || t)).getTime() === date.getTime();
const d = data.find(({ x }) => {
return normalize(getDateFromString(x)).getTime() === date.getTime();
});
return d?.y || 0;