d3 Libray v6.1.1 - d3 functions not recognized

I have a reference to the d3 library in my index.html file.  I have downloaded a local copy and added it as a library in the Settings | Languages & Frameworks | JavaScript | Libraries Interface

I have a linked script.js which I am developing in.

My expectation is that the exported functions should auto-complete or at least be recognized as d3 functions.

The syntax highlighting is not showing these as recognized functions.

I've read this thread which seems to show what I was expecting, but I cannot reproduce it.

This link:

Shows the kind of auto-complete I would expect, but the use case there is using the `import` command, which I can't do in vanilla JS.

What am I missing?

1 comment
Comment actions Permalink

I'd suggest using TypeScript stubs for completion: Settings | Languages & Frameworks | JavaScript | Libraries, press Download, choose 'd3' from the list



Please sign in to leave a comment.