{"schemaVersion":1,"id":"d3","name":"D3","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/d3/","officialUrl":"https://d3js.org/","isCatalog":false,"description":"JavaScript data tools: scales, axes, layouts, and DOM binding help create custom interactive visualizations.","tasks":["UI components and behavior","An app using the required tech stack and its own design","Build a custom chart with scales and axes","Bind a dataset to the DOM for interactive visualization"],"categoryIds":["frontend"],"subcategoryIds":["frontend.charts"],"tags":["JavaScript","SVG/Canvas","charts"],"aliases":["d3/d3"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"D3 code is available free of charge for local and commercial projects, subject to its license.","paidUsage":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","license":"ISC: permits free commercial use, modification, and distribution; retain the copyright notice and permission text. No warranties.","selectionGuide":{"purpose":"UI components and behavior","chooseWhen":["UI components and behavior","An app using the required tech stack and its own design","Build a custom chart with scales and axes"],"considerInstead":["When choosing for this topic, compare D3 with Angular Material. A candidate to compare: both product pages list the use case “UI components and behavior”. Implementation approach and compatibility are checked separately.","When choosing for this topic, compare D3 with Bits UI. A candidate to compare: both product pages list the use case “UI components and behavior”. Implementation approach and compatibility are checked separately."],"requirements":["A visualization is built from data and DOM elements; D3 supplies low-level operations rather than a ready-made analytics interface."],"limitations":["Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","Terms of use: ISC: permits free commercial use, modification, and distribution; retain the copyright notice and permission text. No warranties."],"faq":[{"question":"What can you use for free in D3?","answer":"D3 code is available free of charge for local and commercial projects, subject to its license."},{"question":"What additional costs might arise with D3?","answer":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license."},{"question":"What terms of use matter for D3?","answer":"ISC: permits free commercial use, modification, and distribution; retain the copyright notice and permission text. No warranties."},{"question":"How do you get started with D3?","answer":"Check the project's stack and version against the current D3 documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license."},{"question":"Why specify a key when updating a visualization?","answer":"selection.data matches data to DOM elements; without a key, it uses the index. A stable key links a data object to its previous element during reordering. join handles element entry, updates, and exit. Duplicate keys have specific enter/exit behavior, so keys should be chosen deliberately."}],"related":[{"id":"angular-material","reason":"A candidate to compare: both product pages list the use case “UI components and behavior”. Implementation approach and compatibility are checked separately."},{"id":"bits-ui","reason":"A candidate to compare: both product pages list the use case “UI components and behavior”. Implementation approach and compatibility are checked separately."},{"id":"melt-ui","reason":"A candidate to compare: both product pages list the use case “UI components and behavior”. Implementation approach and compatibility are checked separately."}],"sources":["https://d3js.org/","https://github.com/d3/d3","https://github.com/d3/d3/blob/main/README.md","https://github.com/d3/d3/blob/main/LICENSE","https://raw.githubusercontent.com/d3/d3/HEAD/README.md","https://raw.githubusercontent.com/d3/d3/HEAD/LICENSE","https://www.open-source-tools.com/","https://d3js.org/d3-selection/joining"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"UI components and behavior with D3.","inputs":["A working JavaScript; SVG/Canvas project and a specific use case: UI components and behavior.","A design, interface states, or dataset; target screens and accessibility requirements."],"steps":["Check the project's stack and version against the current D3 documentation; add the package or the required source component.","Implement the selected workflow with the supplied data, adapting styles and states to the project.","Check the result in the target environment, remove sample data, and retain the notices required by the license."],"checks":["The example works in the chosen tech stack, including target dimensions and input errors.","Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met."]},"sources":["https://d3js.org/","https://github.com/d3/d3","https://github.com/d3/d3/blob/main/README.md","https://github.com/d3/d3/blob/main/LICENSE","https://raw.githubusercontent.com/d3/d3/HEAD/README.md","https://raw.githubusercontent.com/d3/d3/HEAD/LICENSE","https://www.open-source-tools.com/","https://d3js.org/d3-selection/joining"],"checkedAt":"2026-10-06","reviewScope":"Purpose, published primary source code/documentation, and license terms were reviewed. An example was not run in a local project.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"UI library","kind":"library","pricingNote":"D3 code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","notes":null,"labeledSources":[{"url":"https://d3js.org/","label":"Official website"},{"url":"https://github.com/d3/d3","label":"Official source"},{"url":"https://github.com/d3/d3/blob/main/README.md","label":"Documentation and use"},{"url":"https://github.com/d3/d3/blob/main/LICENSE","label":"License"},{"url":"https://raw.githubusercontent.com/d3/d3/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/d3/d3/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://d3js.org/d3-selection/joining","label":"Official source"}],"licenseGuides":[{"id":"isc","title":"ISC — short permissive license","scope":null,"summary":"You can use, copy, modify, and distribute the code for any purpose, including commercial use. Retain the copyright notice and permission text in copies. You do not need to open-source your own project; the author provides no warranties.","url":"https://opensource.org/license/isc"}],"entryIds":[],"composition":null}