Обучающие видео » Компьютерные видеоуроки и обучающие интерактивные DVD » Программирование (видеоуроки)
Data Visualization for React DevelopersГод выпуска: 2018
Производитель: frontendmasters.com
Сайт производителя:
https://frontendmasters.com/courses/d3-js-react/Автор: Shirley Wu
Продолжительность: 3 hours, 21 min
Тип раздаваемого материала: Видеоклипы
Язык: Английский
Описание: Learn to design simple visualizations with D3.js and React! In this course, follow along with Shirley Wu as she goes through fundamental visualization theories and shows how to apply them to different chart types. Plus, Shirley demonstrates the best practices on how to use D3.js to generate the data for these visualizations, and how to use React to render them.
[spoiler="Содержание"]
Table of Contents
Introduction
Introduction
00:00:00 - 00:03:43
Introduction
Shirley Wu introduces herself and the goals for the Data Visualization for React Developers course. -
https://slides.com/shirleywu/deck-11/#/How to Navigate the 3 Workshops
00:03:44 - 00:05:30
How to Navigate the 3 Workshops
Shirley talks introduces the three workshops she has created with Frontend Masters, what material they cover, and the order she recommends in taking those classes.
The Basic Chart Types
Introduction to Different Data Types
00:05:31 - 00:14:26
Introduction to Different Data Types
Shirley outlines the agenda for the course. Data types are introduced, as well as common charts and what data is best represented with them.
Pie Charts: Do's and Don't's
00:14:27 - 00:16:11
Pie Charts: Do's and Don't's
Shirley covers what a pie chart can show effectively with data, and when to avoid them.
Course Demonstration Review
00:16:12 - 00:17:23
Course Demonstration Review
Shirley reveals the data visualization project an aggregation of weather data charts that will be built throughout the course.
The Making of a Chart
Introduction to SVG
00:17:24 - 00:21:46
Introduction to SVG
Shirley explains what a SVG is, the elements that it consists of, and its coordinate system.
Weather Data Chart Examples
00:21:47 - 00:27:32
Weather Data Chart Examples
Shirley investigates how to recreate the weather data charts with SVG rectangles and paths. -
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/PathsData to SVG Shapes Exercise
00:27:33 - 00:29:04
Data to SVG Shapes Exercise
The audience is instructed to inspect SVG charts in an an attempt to become familar with the format. -
https://beta.observablehq.com/@sxywu/data-visualization-for-react-developers-starterData to SVG Shapes Solution
00:29:05 - 00:32:26
Data to SVG Shapes Solution
Shirley unveils several capabilities in the virtual notebook editor to update the SVG shapes.
Going from Data to SVG Shapes
00:32:27 - 00:41:42
Going from Data to SVG Shapes
Shirley introduces D3, and why D3's API may seem so intimidating. The scales and shapes modules are covered in detail in this section, because they allow the user to translate raw data to SVG shapes. A linear scale example is discussed, and other scales commonly used are covered.
Going from Data to SVG Exercise
00:41:43 - 00:44:40
Going from Data to SVG Exercise
The audience is asked to apply D3 scales to create a bar chart.
Going from Data to SVG Solution, Part 1
00:44:41 - 01:03:41
Going from Data to SVG Solution, Part 1
Shirley walks through the solution for Going from Data to SVG Exercise using D3's extent(), scaleTime(), scaleLinear(), and map() functions to map temperature data to a visual representation. - NOTE: Remove "ask for questions" remark by Shirley. -
https://github.com/d3/d3-array#extent -
https://github.com/d3/d3-scale#scaleTime -
https://github.com/d3/d3-scale#scaleLinearGoing from Data to SVG Solution, Part 2
01:03:42 - 01:10:38
Going from Data to SVG Solution, Part 2
After building the chart solution, Shirley applies a color scheme using D3's scaleSequential(), and a D3 module used to provide a sequential color scheme. - -
https://github.com/d3/d3-scale#sequential-scales -
https://lodash.com/Creating Line Charts
01:10:39 - 01:13:45
Creating Line Charts
Shirley introduces d3.line() that outputs a path string necessary to draw line charts.
Creating Line Charts Exercise
01:13:46 - 01:16:11
Creating Line Charts Exercise
In this exercise, the D3 line API is utilized to create a line chart. -
https://github.com/d3/d3-shape#lineCreating Line Charts Solution
01:16:12 - 01:24:09
Creating Line Charts Solution
Shirley walks through the Creating Line Charts Exercise.
Creating a Radial Chart
01:24:10 - 01:26:49
Creating a Radial Chart
Shirley demonstrates how to generate a radial chart using D3's arc() function. -
https://github.com/d3/d3-shape#arcsRadial Chart Exercise
01:26:50 - 01:30:32
Radial Chart Exercise
Shirley explains the exercise on how to construct a radial chart, and gives a hint about how to approach the problem.
Radial Chart Solution
01:30:33 - 01:40:07
Radial Chart Solution
Shirley walks through the solution to the Radial Chart Exercise, and introduces color at the end.
Rendering with React
Breaking Down D3 API
01:40:08 - 01:54:20
Breaking Down D3 API
Shirley reviews the data preparation, and the layout calculation portions of D3 API. In particular, why D3 is so powerful, tools to interact with the D3 Documentation, and several D3 libraries are introduced. -
http://blockbuilder.org/D3 Manipultations and Interactions
01:54:21 - 01:56:18
D3 Manipultations and Interactions
Shirley introduces DOM manipulation and Interactions within D3, where React will become useful.
React Renders
01:56:19 - 02:06:42
React Renders
Shirley reviews the division of responsibilities, as well as where the data is calculated within the React application. When lecturing on where data is calculated, the pros and cons of getDerivedStateFromProps, Render, and componentDidMount & componentDidUpdate are examined. The assumptions are introduced, and main takeaways are also concluded.
React and Bar Chart Exercise
02:06:43 - 02:07:28
React and Bar Chart Exercise
In this exercise, students draw a bar chart with React and D3. -
https://codesandbox.io/s/kop49w9r2v?module=%2Fsrc%2Fvisualizations%2FChart.jsReact and Bar Chart Solution
02:07:29 - 02:15:57
React and Bar Chart Solution
Shirley live codes the solution to the React and Bar Chart Exercise, and then walks through the architecture of the app, including App.js.
React and Radial Chart Exercise & Solution
02:15:58 - 02:20:53
React and Radial Chart Exercise & Solution
Shirley live codes how to implement a radial chart within a React project. A different way of implementing the SVG in the React project using componentDidUpdate()/componentDidMount() is also introduced.
The Finishing Touches
The Three Exceptions
02:20:54 - 02:24:03
The Three Exceptions
Shirley discusses the last two portions of the API: the finishing touches, and interactions. The functions within D3 that need access to the DOM are covered, and words of caution are given when interating with the DOM.
Axes, Legends, & Annotations
02:24:04 - 02:26:56
Axes, Legends, & Annotations
Shirley dicusses how to implement axes in React to make your SVG visual aids more meaningful.
Axes Exercise & Solution
02:26:57 - 02:34:20
Axes Exercise & Solution
In this exercise, Shirley walks through the incorporating axes into the bar chart that was previously created with React.
Transitions
02:34:21 - 02:40:29
Transitions
Shirley gives the recommendation that React not manage the attributes D3 is transitioning. Reasoning, and alternatives are given to bypass this issue.
Brush
02:40:30 - 02:41:44
Brush
Shirley introduces brush() from D3, which allows the user to highlight graphs and return data for mouse and touch events using SVG. -
https://github.com/d3/d3-brushBrush Exercise & Solution
02:41:45 - 03:01:25
Brush Exercise & Solution
After discussing how to implement D3 brush, Shirley live codes an example showing how to add brush interactivity to a chart.
Additional Resources
03:01:26 - 03:05:30
Additional Resources
Shirley introduces D3 legends and annotation functions, and additional resources that help with readability of your visual aid. - -
https://emeeks.github.io/semiotic/#/ -
http://d3-legend.susielu.com/ -
http://react-annotation.susielu.com/Canvas
03:05:31 - 03:10:30
Canvas
Shirley introduces canvas for working with large datasets in data visualizations.
Creating Charts in Canvas
03:10:31 - 03:17:10
Creating Charts in Canvas
After reviewing how to create a bar chart in canvas, Shirley shows how to generate a radial chart in canvas with D3.
Questions & Wrapping Up
03:17:11 - 03:21:43
Questions & Wrapping Up
After answers a question about possibility of implementing D3 brush() in canvas, and the application of brush() in a radial chart, Shirley wraps up the course and thanks the students for attending.
[/spoiler]
Файлы примеров: присутствуют
Формат видео: MP4
Видео: H264, 1920x1080, 16:9, 29.97 fps, avg 800 kb/s
Аудио: AAC, 48kHz, 127, stereo
[spoiler="Скриншоты"]

[/spoiler]