Walter Johnson
Walter Johnson

Reputation: 23

D3 does not support property gantt()

I'm trying to add a gantt chart to my application. Started with the simple examples I've seen in the D3 site. When I try something like this:

let gantt = d3.gantt().taskTypes(this.taskNames).taskStatus(this.taskStatus).tickFormat(format);

I get the error

Property 'gantt' does not exist on type 'typeof d3'.

I am still no D3 version 3, and we haven't yet moved to Typescript 2.

Upvotes: 2

Views: 1210

Answers (1)

Shea Hunter Belsky
Shea Hunter Belsky

Reputation: 3218

The functionality to create a gantt chart is not native to D3. You have to import it from this code. (CDN Version)

Upvotes: 2

Related Questions