D3 - data driven document
Design various requirements. I originally used amcharts and felt that it could not fully meet the requirements. Now I want to do research. I saw D3 and heard that it is very powerful, so I tried to follow the example and follow it.
When using d3.tvs('data.tvs', function( error, data ){ alert(data); });
the result is that data is undefined.
tvs content:
date close
1-May-12 58.13
30-Apr-12 53.98
27-Apr-12 67.00
with tab in the middle Separate.
Dear masters, where is the problem?
Data is the data returned by the background. Look at the background to see if there is any return. data.
@#1, imitate d3’s examples and directly read tvs files
I know where the problem lies. Files that cannot be read directly by js must be placed in the web project.. .