Please recreate the UI shown in the attached Figma frame as accurately as possible.
I'll recreate the bar chart visualization from your Figma design using Next.js and a charting library.
This implementation recreates the bar chart from your Figma design with the following features:
Color Scheme: Uses the exact design tokens from your Figma context:
#b3dac7
) for "On Target" bars#fce2aa
) for "Over" bars#fbc6c6
) for "Under" barsLayout:
Data Visualization:
The chart is responsive and will adjust to different screen sizes. I've used Chart.js for the visualization as it provides good customization options to match your design.
Can you add the dark grey bars behind the coloured bars?
I'll update the chart to include the dark grey bars behind the colored bars as shown in the Figma design.
I've updated the chart to include the dark grey bars behind the colored bars, matching the design in your Figma frame. Here's what I changed:
Added a background dataset:
#4d5361
)order
propertyImproved bar positioning:
Enhanced tooltip behavior:
The chart now more accurately represents the design with the dark grey background bars providing visual context for the colored bars. This creates the same visual effect as shown in your Figma design, where each colored bar appears to be overlaid on a consistent dark grey background.
The dark grey bars need to be thicker than the coloured bars and be behind the bars not next to it. The dark grey bars should be twice as wide as the coloured bars