electAll("path")
          .data(stackLayout(data))
          .enter().append("path")
            .style("fill", d => fillScale(d.key))
            .attr("d", d => stackArea(d));
      }
    </script>
  </body>
</html>
