User:Cristinac/d3js
From XPUB & Lens-Based wiki
d3.js
using python to generate static sites and having a front-end to do javascript things
movement towards static sites?
Pandoc:
written in Pascal and makefiles
takes text as an input
generic markup converter
markup and markdown to html
d3.js:
*evolved to a point where it’s very disconnected from the form you will show
*customizable
*short for data-driven documents
*good for fluid documents
*library that allows designers and developer to create visualisations of data in a web browser
*project led by Mike Bostock
*good at supporting interactive and live/changing data via transition and the subtle notion of a data join
*not SVG-specific
*not particularly suitable to drawing in an imperative style (for ex on an HTML canvas element)
web scraping=python
security errors with javascript?
http://www.mongodb.org/
https://nodejs.org/
use python to produce json documents and then you make a document that’s javascript
*like query, d3 uses selections instead of loops:
<script>
d3.selectAll(“a”).style(“color”,”pink”);
</script>
*introduces the notion of chaining:
the selection object when you tell it to do smth that function has an effect but it also returns itself; convention to do things but
*d3 uses indentation cues
**functions:
*attr
*style
*text,html
*append
*classed
*property
data driven documents
145.24.143.131/d3_overview
postscript database