Setting the y-axes to have the mm:ss format?

Hi all

I am having lots of trouble setting the y-axes to have the mm:ss format.

The FCC example code shows a way which I try to replicate but it simply does not work on my code for some reason (line 54)

What could I try?

Thanks for your time


My code:

FCC’s code for same challenge:

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Challenge: Visualize Data with a Scatterplot Graph

Link to the challenge:

Solved it, just needed this line:

const yAxis = d3.axisLeft(yScale).tickFormat(d3.format('d'));

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