I think due to my lack of knowledge about servers and javascript, I am
finding this difficult.
Can someone please give a very simple example of how CSV data stored
in a local csv file can be loaded and converted to javascript array
format using D3.js?
For example, suppose I have the same data as used for an example by
Mike in D3 API.
Year,Make,Model,Length
1997,Ford,E350,2.34
2000,Mercury,Cougar,2.38
Suppose, this is stored in a local file called carInfo.csv
How do I use this file and get the data in the following javascript
array format using D3.js?
[
{"Year": "1997", "Make": "Ford", "Model": "E350", "Length": "2.34"},
{"Year": "2000", "Make": "Mercury", "Model": "Cougar", "Length": "2.38"}
]
Do I need to have a server running for this? Can I do it without the
server? I would really appreciate if you can show this. The examples I
have seen on the web that use csv data are doing a lot of other things
and hence, are difficult to understand.
Thanks in advance for your help.