D3 is such a powerful language, however it can be difficult to start with.
Angular is an amazing framework but it lacks in data visualizations.
We will connect both worlds and create together amazing interactive charts that will bring your pages to another level.
For the absolute beginners, we will start from zero, understanding the d3 library, how it works, and how to use it. We will go into a depth analysis of the d3 update pattern so you can master the library and avoid the most common mistakes beginners do.
D3 is such a powerful language, however it can be difficult to start with.
Angular is an amazing framework but it lacks in data visualizations.
We will connect both worlds and create together amazing interactive charts that will bring your pages to another level.
For the absolute beginners, we will start from zero, understanding the d3 library, how it works, and how to use it. We will go into a depth analysis of the d3 update pattern so you can master the library and avoid the most common mistakes beginners do.
You will connect to api services and transform your data into the right format for each chart.
You will learn the SVG format and standards and how you can use it to create your own customized data visualizations.
We will use angular services and asynchronous data flows to inject data on the charts,
If you already know d3, you will learn about more advanced concepts, using the different d3 libraries, like the d3-array, the d3-force, voronoi partitions and others.
We will create legend and tooltip services, sending and receiving actions to charts and reacting to user inputs.
We will move into reusable charts by creating basic charts and extending them using inheritance.
Finally, you will end the course with a solid base to create your own reusable charts building upon the foundations of what you study here.
Welcome to the world of d3 and angular.
Our first project, DashboardOne, will be our support to start delving into svg and introduce d3.js to angular.
Having a good environment is a step further into developing quality software. We will install Visual Studio Code with some essentials extensions + node.js + Github desktop + Angular cli
Having created our project we will now add the d3 and bootstrap npm dependencies.
We will be using bootstrap as a support library to simplify the html coding so we can focus more on d3.
In this lesson we will create the dashboard component. We will be adding our test charts to visualize our work while learning about d3
Why choosing the SVG format? What advantages does it bring to our charts?
The following questions will check your understanding of why we use SVG
The SVG specs. Basic elements: Rect, Circle, Line, Path, Polyline
To better understand how svg works, we will create a basic column chart by manually writing all the elements
In this lesson we will introduce d3 to angular and learn how to create the same column chart by using d3.
D3 keywords: select, selectAll, enter, append
The src for the angular initial setup, already with chart 5, is available here in the src.zip
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.