SHARE
TWEET

Untitled

a guest Jun 16th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TypeError: g.each is not a function
  2.      
  3. svg
  4.     .append("g")
  5.     .attr("class", "axis")
  6.     .attr("transform", "translate(92," + (h - padding) + ")")
  7.     .call(xAxis);
  8.  
  9.   svg
  10.     .append("g")
  11.     .attr("class", "axis")
  12.     .attr("transform", "translate(" + padding + ",-90)")
  13.     .call(yAxis);
  14.      
  15. svg
  16.     .selectAll("rect")
  17.     .data(dataset)
  18.     .enter()
  19.     .append("rect")
  20.     // .style("fill", "teal")
  21.     .attr("x", function(d) {
  22.       return xAxis(d.Year);
  23.     })
  24.     .attr("y", function(d) {
  25.       return h - d; //Height minus data value
  26.     })
  27.     .attr("height", function(d) {
  28.       return d;
  29.     });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top