You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary Dashboard: Create a Donut Chart showing Planned Cost Breakdown by Type of Expenditure (WIP Sai Krishna)
The chart should display four categories: Plumbing, Electrical, Structural, and Mechanical, each represented by a different color.
The percentage of the total cost for each category should be displayed next to it in hover text.
Include two filters:
A Project filter to view the cost breakdown for a specific project.
Frontend Requirements
Donut Chart Component:
Use chart library like Recharts, Chart.js, or Nivo.
Four fixed segments:
Plumbing
Electrical
Structural
Mechanical
Distinct color for each.
Tooltip / Hover Text:
Show:
Category Name
Planned Cost
Percentage of Total Planned Cost
Filters:
Dropdown for:
Project Filter (list of available projects)
Legend:
Color-coded legend mapping category to color.
Title:
"Planned Cost Breakdown by Type of Expenditure"
API Integration:
Fetch planned cost data based on selected project.
Related PRS (if any):
This frontend PR is related to the #1699 backend PR.
…
The reason will be displayed to describe this comment to others. Learn more.
Followed the test steps - selected a project from the dropdown (with available data) multiple times, but the donut chart didn’t render. Attached screenshots for your reference. Please review.
@ShradhaMBhadrannavar , I didn't add it in the How to test because the backend PR number is already mentioned in the Related PR's section. So you might have not checked out the backend PR. So Please test this frontend with checking out the mentioned backend PR
The reason will be displayed to describe this comment to others. Learn more.
Hi Sai Krishna,
I have tried to review your PR locally and have identified the below issues:
The frontend does not load as it appears to be in your images.
It is very difficult to find the project due to the huge number of list, it would be helpful if you could enable typing and the dropdown then reducing the projects based on characters typed
The page does not appear to have dark mode enabled
The total of the percentages crosses 100 in the donut chart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary Dashboard: Create a Donut Chart showing Planned Cost Breakdown by Type of Expenditure (WIP Sai Krishna)
The chart should display four categories: Plumbing, Electrical, Structural, and Mechanical, each represented by a different color.

The percentage of the total cost for each category should be displayed next to it in hover text.
Include two filters:
A Project filter to view the cost breakdown for a specific project.
Frontend Requirements
Donut Chart Component:
Use chart library like Recharts, Chart.js, or Nivo.
Four fixed segments:
Plumbing
Electrical
Structural
Mechanical
Distinct color for each.
Tooltip / Hover Text:
Show:
Category Name
Planned Cost
Percentage of Total Planned Cost
Filters:
Dropdown for:
Project Filter (list of available projects)
Legend:
Color-coded legend mapping category to color.
Title:
"Planned Cost Breakdown by Type of Expenditure"
API Integration:
Fetch planned cost data based on selected project.
Related PRS (if any):
This frontend PR is related to the #1699 backend PR.
…
Main changes explained:
…
How to test:
npm installand...to run this PR locallyScreenshots or videos of changes: