Black Lives Matter. Please consider donating to Black Girls Code today.

Sample Size X Axis

So I have one row of data and I want to plot it against the number of samples in that row of data without actually having a row containing the number of samples so for example, my row of 100 entries, I want to plot on the Y-Axis against the X-Axis of [100]. Is there a way I can do this? So far, my only current solution is creating a row of numbers [1-100] in my data but that’s not optimal at all.

Here’s how: https://codepen.io/etpinard/pen/LrvGYd?editors=0010

1 Like

Thanks for the solution, but I’m stupid. I just created an array lol…