How does one Print Headers from a CSV file?

Hello,

I'm using p5js to do a little data Visualisation. I've Build a simple script to animate my data as a bar chart.

I would like to be able to have the year, (which is the header in the CVS file), displayed on the canvas as i iterate over the data.

I'm struggling to work out how i parse the header!

Am I going to have to load the table without headers and just start reading data from row 1 and fix row zero as my string for the display, or is there a way to 'table.getHeader(n)' or something similar?

thank you

Tagged:

Answers

Sign In or Register to comment.