Shreya P taking over for Vamsidhar - Create a Line Graph Chart for Cost Breakdown by Type of Expenditure#1357
Conversation
…t-breakdown-by-expenditure-backend
Venk-rgb
left a comment
There was a problem hiding this comment.
Tested the PR with the corresponding UI. Approving changes in the backend. I have added comments in the frontend PR.
Screen.Recording.2025-06-27.at.9.46.48.AM.mov
…t-breakdown-by-expenditure-backend
vamsidharpanithi
left a comment
There was a problem hiding this comment.
Checked out and tested the backend along with the related frontend PR. The routes under /expenditure are defined, and the controller for retrieving expenditure data is present. However, the /ExpenditureLineGraph page on the frontend returns a 404 error, and there is a TypeError related to an undefined projectFilter state. This may indicate a mismatch between the expected backend response and the frontend integration. Please review the route accessibility and ensure the endpoint is correctly connected to the frontend component.
…t-breakdown-by-expenditure-backend
shashankm9
left a comment
There was a problem hiding this comment.
Tested this PR along with the frontend, Everything is working as expected.
PR.3458.mp4
harshavarma29
left a comment
There was a problem hiding this comment.
I have tested the related Frontend PR, and it's working as expected. However, I have left a few comments.
I noticed that an "undefined" category is being added next to the expenditures. Please refer to the screenshot below:
It seems the JSON property highlighted below leads to the "undefined" issue in the Frontend.
|
With reference to PR 3906, tested the backend:
|
|
Tested the related frontend PR #3906 by checking out this PR, got the following error while fetching the data: Error: Error fetching data: Request failed with status code 404 |
vishnu-ing
left a comment
There was a problem hiding this comment.
Tested the expenditure graph code changes and API in local and added comments in FE PR-3906.
aseemdeshmukh
left a comment
There was a problem hiding this comment.
Works perfect! (Referred FE PR 3906)
- Tested in light and dark mode. Everything is clearly visible.
- Filters work properly.
- Getting the error when start date is greater than end date; which is expected
- attached screenshots
NOTE (Whoever is getting Error 404 and the graph is not loading; check if the frontend API hitting the backend. Make sure your .env file has the same port as backend, and in the browser when loading the website check the API.)
…ent compatibility
…e chart functionality
…e/storage-blob compatibility
|

















Description
Backend for a frontend line graph chart that shows time in months (x-axis) and cost (y-axis) of projects. The chart can be filtered by projects and by date range.
Related PRS (if any):
To test this backend PR you need to checkout the #3458 frontend PR --> Redone with OneCommunityGlobal/HighestGoodNetworkApp#3906
…
Main changes explained:
…
How to test:
npm installandnpm run startto run this PR locally