d4 VS d3

Compare d4 vs d3 and see what are their differences.

d4

Data-Driven Declarative Documents (by joelburget)

d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada: [Moved to: https://github.com/d3/d3] (by mbostock)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
d4 d3
2 4
818 100,996
- -
10.0 7.1
almost 8 years ago about 2 years ago
JavaScript JavaScript
BSD 3-clause "New" or "Revised" License ISC License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

d4

Posts with mentions or reviews of d4. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-17.

d3

Posts with mentions or reviews of d3. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-05.
  • D3, nested appends, and data flow
    1 project | /r/codehunter | 5 May 2022
    I found mention of nested selection on another post, which pointed to http://bost.ocks.org/mike/nest/. But is nested selection, and therefore breaking apart the appends into three chunks, appropriate/idiomatic for this situation? Or is there actually a well-constructed way to form this structure in one chain of declarations? It seems like there might be a way with subselections mentioned on https://github.com/mbostock/d3/wiki/Selections, but I'm not familiar enough with the language to test that hypothesis.
  • How do you create a family tree in d3.js?
    2 projects | /r/codehunter | 5 May 2022
    I've chosen d3.js for this because it looks like would be capable of doing the job. I just don't know how or even where to start. Tutorials about d3.js only cover standard charts like bar charts.
  • How do I shut down a python simpleHTTPserver?
    1 project | /r/codehunter | 24 Apr 2022
    So I'm trying to learn d3, and the wiki suggested that
  • D3.js: "Uncaught SyntaxError: Unexpected token ILLEGAL"?
    1 project | /r/codehunter | 20 Apr 2022
    D3 Sandbox But when I load this page, my console (in Chrome) is giving me this error:

    Uncaught SyntaxError: Unexpected token ILLEGAL: line 2 It doesn't like the pi and e symbols at the start of the file. Errrr... what can I do about this? I am serving the file with python's SimpleHTTPServer.

    Update: yes I know I can just link to a CDN version, but I would prefer to serve the file locally.

    Answer link : https://codehunter.cc/a/javascript/d3-js-uncaught-syntaxerror-unexpected-token-illegal

What are some alternatives?

When comparing d4 and d3 you can also consider the following projects:

c3 - :bar_chart: A D3-based reusable chart library

seaborn - Statistical data visualization in Python

d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

visx - 🐯 visx | visualization components

dagre - Directed graph layout for JavaScript

Cesium - An open-source JavaScript library for world-class 3D globes and maps :earth_americas:

Frappe Charts - Simple, responsive, modern SVG Charts with zero dependencies

GreenSock-JS - GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web

mxGraph

echarts - Apache ECharts is a powerful, interactive charting and data visualization library for browser

plantuml - Generate diagrams from textual description

react-motion - A spring that solves your animation problems.