I’m doing some form of data visualization learning for 180 days because I need to #JFDI.
Chapter 5 Layouts
Three Takeways Today
- Layouts are D3 functions that help format data so it can be used for select group of charting methods p 139
- Layouts do not actually draw the data nor are they called like components or referred to in the drawing code like generations. They’re actually a preprocessing step that formats data so it’s ready to be displayed in the form of the visual. You can update layouts and if you rebind the altered data, you can use D3 enter/update/exit syntax. p 139
- “Many people get who started with D3 think it’s a charting library, and that they’ll find a function like d3.layout.histogram that creates a bar chart in a <div> when it’s run. But D3 layouts don’t result in charts; they result in the settings necessary for charts. You have to put in a bit of extra work for charts, but you have enormous flexibility (as you’ll see in this and later chapters) that allows you to make diagrams and charts that you can’t find in other libraries” p 141