Lessons

Explore all newline lessons

Tags
Author
Pricing
Sort By
Video
Most Recent
Most Popular
Highest Rated
Reset
Drawing our peripherals in React

lesson

Drawing our peripherals in ReactFullstack D3 Masterclass

We take a naive approach to creating an Axis component

Drawing our data in React

lesson

Drawing our data in ReactFullstack D3 Masterclass

Next, we fill out our Line component for a flexible way to draw our data.

Creating our scales in React

lesson

Creating our scales in ReactFullstack D3 Masterclass

Next, we need to create our scales. We also create scaled accessor functions to pass to the children of our Timeline, so they don't need to know about our scales.

Drawing our canvas in React

lesson

Drawing our canvas in ReactFullstack D3 Masterclass

We create our wrapper and bounds within our Chart component to prevent from having to repeat ourselves for every chart we create.

Creating dimensions in React

lesson

Creating dimensions in ReactFullstack D3 Masterclass

Creating dimensions in React can be really easy! We use a custom hook for watching the size of our wrapper and automatically calculating the dimensions of our bounds.

Week 7: Exercise

lesson

Week 7: ExerciseFullstack D3 Masterclass

Let's consolidate what we just learned with an exercise to play with this week.

Will Chase

lesson

Will ChaseFullstack D3 Masterclass

Will Chase talks us through how he got into data viz, the difference between work and freelance projects, and walks us through his most recent, wonderful visualization of hurricane names.

Russell Goldenberg

lesson

Russell GoldenbergFullstack D3 Masterclass

Russell Goldenberg talks to us about what it's like working at the Pudding, his journey from Comp Sci to creative computation, and drops some great tips for working on data viz projects.

Step 6: Draw peripherals

lesson

Step 6: Draw peripheralsFullstack D3 Masterclass

Our sixth step: drawing peripherals. We draw our axes, learn about the text SVG element, and how to add (and rotate) labels.

Step 5: Draw data

lesson

Step 5: Draw dataFullstack D3 Masterclass

The fifth step: drawing our data. This is an important lesson! We talk about data joins, which are one of the trickiest parts of d3, and necessary for updating our charts & binding our visualization to data.

Step 4: Create scales

lesson

Step 4: Create scalesFullstack D3 Masterclass

The fourth step: creating our scales. We talk about scales in more depth, and learn about d3.extent() & .nice().

Step 3: Draw canvas

lesson

Step 3: Draw canvasFullstack D3 Masterclass

The third step: drawing our canvas. We create our wrapper & bounds, then shift them to respect our margins.