Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Cirkeldiagram met legenda en hover New

SVG pie chart that sweeps in when in view, with a legend of buttons beside it. Hovering a slice or legend row highlights both, nudges the slice outwards and shows count and percentage in a live line; clicking pins the choice. The legend works with tab and arrow keys. For lead sources, revenue split and survey results with up to six parts.

Waar komen aanvragen vandaan? Kozijnen Bosman, Apeldoorn · jan t/m sep

    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.
    <!-- Cirkeldiagram met legenda en hover · NedDev · eigen werk. -->
    <div class="jouw-container">
    <div class="cdg">
    <p class="cdg__t">Waar komen aanvragen vandaan?<span> Kozijnen Bosman, Apeldoorn · jan t/m sep</span></p>
    <div class="cdg__main"><svg class="cdg__pie" viewBox="-60 -60 120 120" role="img" aria-label="Cirkeldiagram met de herkomst van 384 aanvragen. De legenda ernaast geeft de aantallen."></svg>
    <div class="cdg__side"><ul class="cdg__lg"></ul><p class="cdg__det" aria-live="polite"></p></div></div>
    </div>
    </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 →