I have a CSV file that I would like to use as source data for a jQuery flot graph.
Should I:
I'm not having much luck finding a jQuery plugin that can cope with an external CSV file, but maybe I'm missing something.
Use the jQuery CSV plugin to get an array. Build / sort the array however you need for the chart.
It just occured to me you may be thinking of reading a flat CSV file with jQuery. That's not possible. Giving javascript access to the filesystem sounds like a terrible idea. You can always use $.get()
to load a file on a server, though.