borntofrappe / learning-d3

d3.js is vast. Here's a repository filled with projects to master the library, its many modules and powerful features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stacked Bar Chart Component

borntofrappe opened this issue · comments

Connected to #41, create a component function to produce a stacked bar chart.

The implementation of the function, specifically the transition between successive calls to the instance of the component, is inspired by the code for d3-axis.

The additional challenge is due to the nested nature of the SVG elements. Here you need to handle a variable number of group elements and a variable number of rectangle elements inside of these group elements.

The project introduces several new concepts looking at the source code for the d3-axis module. Explain the features in the README document.