Home > Web Front-end > HTML Tutorial > D3.tvs cannot read data_html/css_WEB-ITnose

D3.tvs cannot read data_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:58:40
Original
854 people have browsed it

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?


Reply to discussion (solution)

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.. .

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template