Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Staafgrafiek met tabel New

Accessible SVG bar chart (savings per year) built from a plain HTML table: bars grow when in view (IntersectionObserver), per-bar tooltip on hover and focus, arrow keys between bars and a toggle to the table view. Without JS or with reduced motion you keep the table or a static chart.

Zonnepanelen · fam. De Vries, Zwolle

Besparing per jaar

Besparing per jaar in euro's, zonnepanelen familie De Vries, Zwolle
Jaar2019202020212022202320242025
Besparing€ 312€ 498€ 611€ 702€ 655€ 840€ 918
t.o.v. vorig jaarnvt+60%+23%+15%-7%+28%+9%
Bron: omvormer-data · stroomprijs € 0,28 per kWh

How to use it

  1. Paste the HTML where the numbers & charts should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Staafgrafiek met tabel · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<figure class="sbg"><div class="sbg__hd"><div><p class="sbg__k">Zonnepanelen · fam. De Vries, Zwolle</p><p class="sbg__t">Besparing per jaar</p></div><div class="sbg__sw" role="group" aria-label="Weergave"><button type="button" class="sbg__b" aria-pressed="true" data-v="g">Grafiek</button><button type="button" class="sbg__b" aria-pressed="false" data-v="t">Tabel</button></div></div>
<div class="sbg__plot"><div class="sbg__tip" hidden></div></div>
<table class="sbg__tbl"><caption class="sbg__sr">Besparing per jaar in euro's, zonnepanelen familie De Vries, Zwolle</caption><thead><tr><th scope="row">Jaar</th><th scope="col">2019</th><th scope="col">2020</th><th scope="col">2021</th><th scope="col">2022</th><th scope="col">2023</th><th scope="col">2024</th><th scope="col">2025</th></tr></thead><tbody><tr><th scope="row">Besparing</th><td data-v="312">€ 312</td><td data-v="498">€ 498</td><td data-v="611">€ 611</td><td data-v="702">€ 702</td><td data-v="655">€ 655</td><td data-v="840">€ 840</td><td data-v="918">€ 918</td></tr><tr><th scope="row">t.o.v. vorig jaar</th><td>nvt</td><td>+60%</td><td>+23%</td><td>+15%</td><td>-7%</td><td>+28%</td><td>+9%</td></tr></tbody></table>
<figcaption class="sbg__f">Bron: omvormer-data · stroomprijs € 0,28 per kWh</figcaption></figure>
</div>

More numbers & charts

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →