Can someone tell me why I currently can;t see the bar chart? Thank you!
You have a typo in your function
createStuff(data);
function creatStuff(data) { ... }
This is the error that youāre getting but itās not shown in codepen console unfortunately.
pen.js:44 Uncaught (in promise) ReferenceError: createStuff is not defined
at pen.js:44
When working in codepen I recommend using devtools for debugging
Thanks! I forgot I could use VSCode for help, lol. Itās been a while since Iāve done any serious projects.
Sometimes there is no need for VSCode and codepen is perfectly fine and Iām using it a lot but instead of their console I do something like this
I should be able to see my yaxis now. Why canāt I?
Again I can recommend devtools
When you inspect the svg, you can find that your axis is actually rendered, but somehow transformation is not applied.
Itās not applied because there is a parentheses missing.
.attr('transform', `translate(${50}, ${padding}`)
Oops. Hee hee. Thanks.
Iām almost done. But this is not passing one of the tests. I donāt know why because i canāt understand. Can I have a little help? Thank you!
This is the error message.
Tooltipās ādata-dateā property should be equal to the active areaās ādata-dateā property: expected āundefinedā to equal ā1970-07-01ā
It says that property data-date
is undefined
. My idea would be to check where are you setting this property.
This is where you set attribute data-date
in your tooltip. Iād recommend console logging and checking what actually d
is, because it might not be what you expect it to be
.on("mouseover", (d, i) => {
console.log(d);
tooltip.setAttribute("data-date", d[0]);
})
PS Iād recommend creating new topic next time if you have another issue, because this one is already marked as a one with solution so people wonāt know that you still need some help