The Stack Function
The ‘stack()’ function will help us with formatting our data so that we can draw a stacked bar chart.
We'll cover the following
We are going to look at another D3 function for formatting our data. At the moment, our data is not ready to be drawn. That may sound weird because, at first glance, it looks properly formatted. Let’s check out the data file for a moment.
Get hands-on with 1400+ tech skills courses.