Section · Stats

Solar co-op stats with counters and sparklines

by Informeek Studio 15 November 2026
Live Drag along a sparkline, then switch to Since 2021

The prompt

Build a stats section for a community energy co-op called Brightacre Solar Co-op. Off white page (#f6f7f2), deep teal ink (#0b3b3c), sun yellow (#f5b301) and leaf green (#6bbf59). Top left, a turning sun icon, the eyebrow "Brightacre Solar Co-op, member report" and a 58px heavy headline "Forty one roofs, owned by the people under them" with the last words on a yellow highlighter band. Top right, a pill toggle "Last 12 months" and "Since 2021" with a sliding teal knob, and a pulsing green dot beside "Meter readings updated 1 November 2026". Below, four white cards in a row: Energy generated 8,110 MWh, Carbon kept out of the air 1,679 tonnes, Paid back to members £213,000 and Members 6,214, each with an icon tile and a green trend chip. When the section scrolls into view, count every number up from zero over about 1.5s with an ease out quart curve and tabular figures, and draw an SVG sparkline under each with stroke dashoffset, a soft gradient fill and a pulsing end dot. Hovering or dragging a sparkline shows a guide line, a dot and a dark tooltip with that month and value; arrow keys do the same and read it out. The toggle counts to the totals since 2021 and redraws quarterly lines. On phones turn the cards into a sideways scroll snap row and stack the heading and toggle.

Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI site builder, or any AI chat that writes code.
  3. Make it yours by feeding the four cards your own totals and monthly figures.

About this animated counter section

An animated counter makes a number feel earned, and this section pairs each one with the line that produced it. Four cards report a solar co-op’s year: energy generated, carbon saved, money paid back to members and the number of members. When the section comes into view the figures count up from zero while a sparkline draws itself underneath, ending in a small pulsing dot at today.

The sparklines are not decoration. Run a finger or a mouse along one and a tooltip reads out that month, so the summer peak in solar output and the steady climb in membership can both be checked. A toggle at the top switches from the last twelve months to the whole life of the co-op, counting each total to its new value and redrawing every line by quarter.

Why the prompt works

  • It gives every number, so the layout is built for real figures and units.
  • It names the motion precisely, duration, easing and when it starts.
  • It makes the charts readable with scrubbing, tooltips and arrow keys.
  • It keeps one calm palette, so four colours do not turn into a dashboard.

Where to use it

Annual reports, impact pages, charities, co-ops and any about page that needs to show a few numbers and how they got there.

The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.

Keep exploring

More prompts like this

See the collection →
Live
Section · Stats

Animated stats counter section

Live
Component · Cards

Bento grid with a roaming spotlight