Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d3.tsv, d3.csv, d3.dsv return error #13

Closed
vcernomschi opened this issue Sep 27, 2016 · 2 comments
Closed

d3.tsv, d3.csv, d3.dsv return error #13

vcernomschi opened this issue Sep 27, 2016 · 2 comments
Assignees

Comments

@vcernomschi
Copy link

d3.tsv, d3.csv, d3.dsv returns error

Steps to reproduce:

  1. Add console.log to drag-zoom-2.component.ts in d3-ng2-demo project:
ngOnInit() {
    let d3 = this.d3;
    console.log('d3.csv:', d3.dsv);
    console.log('d3.csv:', d3.csv);
    console.log('d3.csv:', d3.tsv);
    let d3ParentElement: Selection<HTMLElement, any, null, undefined>;
    //.....
  1. Start local server:
npm run start

Expected result: Application is loaded successfully without errors. Code of dsv,csv,tsv methods displayed.
Actual result: Application is loaded with errors below:

client?93b6:76[default] /Users/vcernomschi/d3-ng2-demo/src/app/d3-demos/drag-zoom-2/drag-zoom-2.component.ts:59:30 
Property 'dsv' does not exist on type 'typeof "/Users/vcernomschi/d3-ng2-demo/node_modules/d3-ng2-service/src/bundle-d3"'.errors @ client?93b6:76
client?93b6:76[default] /Users/vcernomschi/d3-ng2-demo/src/app/d3-demos/drag-zoom-2/drag-zoom-2.component.ts:60:30 
Property 'csv' does not exist on type 'typeof "/Users/vcernomschi/d3-ng2-demo/node_modules/d3-ng2-service/src/bundle-d3"'.errors @ client?93b6:76
client?93b6:76[default] /Users/vcernomschi/d3-ng2-demo/src/app/d3-demos/drag-zoom-2/drag-zoom-2.component.ts:61:30 
Property 'tsv' does not exist on type 'typeof "/Users/vcernomschi/d3-ng2-demo/node_modules/d3-ng2-service/src/bundle-d3"'. 
@tomwanzek tomwanzek self-assigned this Sep 27, 2016
@tomwanzek
Copy link
Owner

Thanks will investigate.

@tomwanzek
Copy link
Owner

d3.dsv, d3.csv, and d3.tsv are not valid methods/members of the d3-dsv module. Please refer to the API documentation.

The service/related typescript definitions correctly throws an error in my IDE, when trying to even use them as suggested in your ngOnInit. By implication running them will lead to an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants