D3 bar chart - x values don't line up with x locations

After hours trying to pass tests 10 and 11 I almost lost my hairs. Already tried other people solutions to the same issue but couldn’t make it work. Here is my pen
https://codepen.io/elschilling/pen/OJpeGeg

if someone could guide me through the darkness I will be ethernally grateful :smile:

          svg.append('g')
            .call(yAxisScale)
            .attr('transform', 'translate(45, 0)')
            .attr('id', 'x-axis');

          svg.append("g")
            .attr("transform", "translate(0," + h + ")")
            .call(xAxis)
            .attr('id', 'y-axis');
            });

Your id attributes are backwards. Second set of eyes and all that.

1 Like

Wowww!!! :heart_eyes: all green now thank you so much @jeremy.a.gray and yours attentive eyes!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.