I’m encountering errors that I’m having difficulty troubleshooting. One is with the x-axis and the second is with the tooltip functionality.
1) X-axis Issue
I failed the test case 10:
The data-date attribute and its corresponding bar element should align with the corresponding value on the x-axis.
The result is
AssertionError: x values don't line up with x locations : expected false to be true.
2) Tooltip Issue
I failed the test case 2:
My tooltip should have a "data-date" property that corresponds to the "data-date" of the active area.
The result is
AssertionError: Tooltip's "data-date" property should be equal to the active area's "data-date" property: expected '1993-1-01' to equal '1993-01-01'.
However, sometimes it passed even with the same code.
Link to the challenge - Visualize Data with a Bar Chart
Any help is appreciated!