Skip to main content
100%

KPI Widget 01

✓ Published0🌍 Public
Bbarryhillier
Last edited Jun 22, 2023
Created on Jun 22, 2023
Forked from React Starter

This KPI widget displays 12 months of performance data as a bar chart, contrasting actual values against targets with confidence intervals rendered as error bars. The visualization uses D3 scales and axes (`scaleBand`, `scaleLinear`, `axisBottom`, `axisLeft`) within an SVG container. React 18 manages the root element, while the code directly appends SVG elements via D3 selections. Dummy data hard-coded in the script drives the monthly periods, with target bars showing a fixed goal and error bars spanning upper and lower bounds.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes