Skip to content

Payment History Chart - Filter & Extract Stream Data #21

@ceeriil

Description

@ceeriil

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:

  1. Extract relevant data (timestamp, amount, date) from the stream object.
  2. Categorize transactions based on timeframes:
    • Past month
    • Past week
    • Past 6 Months
  3. 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

  • 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions