-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
We need to extract and filter transaction data from the stream object to display the payment history chart on dashboard home page. The goal is to:
- Extract relevant data (
timestamp,amount,date) from the stream object. - Categorize transactions based on timeframes:
- Past month
- Past week
- Past 6 Months
- Format the data and Populate in chart
Proposed Solution
- Filter transactions where the timestamp falls within the last 6 months, last month or week.
- Extract the
amountanddatefields for plotting. - Return the transformed data in a format suitable for the chart component.
Tasks
- Write a function to filter transactions by timestamp.
- Extract only necessary fields:
timestamp,amount,date. - Ensure the data is structured properly for visualization.
- Test with different datasets to confirm correctness.
Additional Notes
This is for the payment history chart, so we need an optimized function that works efficiently with potentially large datasets.
Metadata
Metadata
Assignees
Labels
No labels