|
| 1 | +title: d3.js |
| 2 | +category: page |
| 3 | +slug: d3-js |
| 4 | +sortorder: 0924 |
| 5 | +toc: False |
| 6 | +sidebartitle: d3.js |
| 7 | +meta: d3.js is a JavaScript visualization library for creating interactive visuals for web browsers. |
| 8 | + |
| 9 | + |
| 10 | +# Data-Driven Documents (d3.js) |
| 11 | +[Data-Driven Documents (d3.js)](https://d3js.org/) is a |
| 12 | +[JavaScript](/javascript.html) visualization library used to create |
| 13 | +interactive visuals for web browsers. |
| 14 | + |
| 15 | +<img src="/img/logos/d3js.png" width="100%" alt="Data-Driven Documents (d3.js) logo." class="technical-diagram"> |
| 16 | + |
| 17 | + |
| 18 | +### d3.js tutorials |
| 19 | +d3.js has a steep learning curve so it is a good idea to read several |
| 20 | +tutorials before diving in and trying to create your own visualization |
| 21 | +from scratch. |
| 22 | + |
| 23 | +* [The Hitchhiker’s Guide to d3.js](https://medium.com/@enjalot/the-hitchhikers-guide-to-d3-js-a8552174733a) |
| 24 | + is a wonderfully-written resource that explains the context for how |
| 25 | + d3.js works and how all the pieces can be used to create your desired |
| 26 | + visualizations. |
| 27 | + |
| 28 | +* [d3.js first steps](https://www.dashingd3js.com/d3js-first-steps) |
| 29 | + contains the code and markup for building your first d3.js visual. |
| 30 | + |
| 31 | +* [Let's Make a D3 Plugin](https://bost.ocks.org/mike/d3-plugin/) shows |
| 32 | + you how to create your own reusable plugin that you can use across |
| 33 | + multiple visualizations as a separate JavaScript library. d3.js |
| 34 | + version 4 is now widely used so don't worry about the note at the |
| 35 | + start of the article. |
| 36 | + |
| 37 | +* [Reusable and extendable d3 charts](https://537.io/reusable-and-extendable-d3-charts/) |
| 38 | + is a natural extension of the d3 plugin post. It shows how to reuse |
| 39 | + visualization code between multiple visuals. |
| 40 | + |
| 41 | +* [Visualizing Movement Data - Part I](https://omid.al/posts/2016-08-23-MocapVis-D3.html) |
| 42 | + provides a detailed example of how to draw a complex visualization. |
| 43 | + |
| 44 | +* This [Fantasy Map Generator](https://bl.ocks.org/Azgaar/b845ce22ea68090d43a4ecfb914f51bd) |
| 45 | + is such a cool example of what d3.js can procedurally generate based on |
| 46 | + a set of inputs. |
| 47 | + |
| 48 | +* [Building dashboards with Django and D3](http://www.dreisbach.us/blog/building-dashboards-with-django-and-d3/) |
| 49 | + |
| 50 | +* [Argyle](http://bl.ocks.org/veltman/f24fba4f6549639cacfd4d0a50e9d4b8) in |
| 51 | + d3? Oh yes, the library can do that, and here is the code to prove it. |
| 52 | + |
| 53 | + |
| 54 | +### Charts with d3.js |
| 55 | +* [Responsive D3js Charts](http://ablesense.com/responsive-d3js-charts/) |
| 56 | + shows how to take a static line chart and make it |
| 57 | + [responsive](/responsive-design.html) when the browser size changes. |
| 58 | + |
| 59 | +* [Resize to Scale with d3.js](http://www.thesoftwaresimpleton.com/blog/2015/11/16/resize-d3/) |
| 60 | + gives code for a render function that adjusts the size of the viewing |
| 61 | + window based on the parent element for the visualization. |
| 62 | + |
| 63 | +* [Make great-looking d3.js charts in Python without coding a line of JavaScript](http://dataviztalk.blogspot.com/2016/01/make-great-looking-d3js-charts-in.html) |
| 64 | + combines a Python backend with the |
| 65 | + [python-nvd3](https://github.com/areski/python-nvd3) library to |
| 66 | + generate d3.js charts without having to hand-write the JavaScript code. |
| 67 | + If you are interested in a solution like this for your own visualizations |
| 68 | + then you should also check out [Bokeh](/bokeh.html). |
| 69 | + |
0 commit comments