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
amount and date fields for plotting.
- Return the transformed data in a format suitable for the chart component.
Tasks
Additional Notes
This is for the payment history chart, so we need an optimized function that works efficiently with potentially large datasets.
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:
timestamp,amount,date) from the stream object.Proposed Solution
amountanddatefields for plotting.Tasks
timestamp,amount,date.Additional Notes
This is for the payment history chart, so we need an optimized function that works efficiently with potentially large datasets.