]);
        
        var movies = ["titanic", "avatar", "akira", "frozen", "deliverance", "avengers"];
        
        var fillScale = d3.scaleOrdinal()
          .domain(movies)
          .range(["#fcd88a", "#cf7c1c", "#93c464", "#75734F", "#5eafc6", "#41a368"]);
        
        stackLayout = d3.stack()
          .keys(movies);
        
        var stackArea = d3.area()
          .x((d, i) => xScale(i))
          .y0(d => yScale(d[0]))
          .y1(d => yScale(d[1]));
        
        d3.select("svg").s