Toolverse
All skills

d3-viz

by davila7

Creating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations, or any complex SVG-based data visualisation that requires fine-grained control over visual elements, transitions, or

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davila7
Category
Frontend
Views
19

About this skill

Creating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations, or any complex SVG-based data visualisation that requires fine-grained control over visual elements, transitions, or interactions. Use this for bespoke visualisations beyond standard charting libraries, whether in React, Vue, Svelte, vanilla JavaScript, or any other environment.

How to use

  1. Załaduj d3.js do swojego projektu, importując bibliotekę na początku skryptu za pomocą import * as d3 from 'd3' lub dodając CDN wersję 7.x poprzez tag script w HTML.
  2. Wybierz wzorzec integracji — bezpośrednia manipulacja DOM (rekomendowana dla większości przypadków) lub integracja z frameworkiem takim jak React czy Vue, jeśli chcesz reaktywność.
  3. Przygotuj dane, które chcesz wizualizować — d3.js wiąże dane z elementami DOM i stosuje transformacje oparte na danych.
  4. Zdefiniuj skale (scales) do mapowania wartości danych na wymiary wizualne, takie jak pozycja, rozmiar czy kolor.
  5. Utwórz elementy SVG za pomocą d3 selections i zastosuj atrybuty oparte na danych — d3 obsługuje płynne przejścia i animacje między stanami.
  6. Dodaj interakcje, takie jak pan, zoom lub brush, aby umożliwić użytkownikom eksplorowanie wizualizacji — d3 zapewnia wbudowane moduły do obsługi tych zachowań.

Related skills

svg-precision

by dkyazzentwatwa

Deterministic SVG generation, validation, and rendering. Use for icons, diagrams, charts, UI mockups, or technical drawings requiring structural correctness and cross-viewer compatibility.

Frontend
233466

google-official-seo-guide

by littleben

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

Frontend
101196

frontend-ui-ux

by code-yeongyu

Designer-turned-developer who crafts stunning UI/UX even without design mockups

Frontend
1884

browser-automation

by browserbase

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include \

Frontend
21175

interactive-dashboard-builder

by anthropics

Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.

Frontend
2298

brainstorming

by obra

Use when creating or developing, before writing code or implementation plans - refines rough ideas into fully-formed designs through collaborative questioning, alternative exploration, and incremental validation. Don't use during clear 'mechanical' processes

Frontend
49170