I want to use d3-cloud to generate a word cloud in my Angular2 app. However, I\'m not able to find the right typings to install. I tried this but when I tried to import it i
I worked it out by following below steps -
import * as d3 from "d3";
import * as d3Cloud from "d3-cloud";
wordCloud(): void {
let svg: any = d3.select("svg")
.attr("width", 850)
.attr("height", 350);
d3Cloud().size([800, 300])
.words(wordList)
}