mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
add transaction hour of day to axis / category / series in insights explorer
This commit is contained in:
@@ -279,6 +279,15 @@ export const useExplorersStore = defineStore('explorers', () => {
|
||||
categoryIdType: TransactionExplorerDimensionType.Other,
|
||||
categoryDisplayOrders: [dateTime.getGregorianCalendarQuarter()]
|
||||
};
|
||||
} else if (dimension === TransactionExplorerDataDimension.DateTimeByHourOfDay) {
|
||||
const dateTime = isDefined(transactionTimeUtfOffset) ? parseDateTimeFromUnixTimeWithTimezoneOffset(transaction.time, transactionTimeUtfOffset) : parseDateTimeFromUnixTime(transaction.time);
|
||||
|
||||
return {
|
||||
categoryName: dateTime.getHour().toString(10),
|
||||
categoryId: dateTime.getHour().toString(10),
|
||||
categoryIdType: TransactionExplorerDimensionType.Other,
|
||||
categoryDisplayOrders: [dateTime.getHour()]
|
||||
};
|
||||
} else if (dimension === TransactionExplorerDataDimension.TransactionType) {
|
||||
let transactionTypeName = 'Unknown';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user