DynamicWordCloud

This project was generated with Angular CLI version 7.0.4.
This project is used to generate Word Cloud dynamically.

Steps

  • Clone the project
  • Within the root folder of the project, run npm install.
  • To start the server, run ng serve.
  • The server starts at localhost:4200.

Process

The Word Cloud in this project is generated dynamically using Data-Driven Documents(d3) and a custom javascript file created created. The custom javascript file wordCloudModule exposes a function wordCloudGenerator. This function expects an object containing 2 mandatory parametes containerid which is the id of the container in which you want to display the Word Cloud and wordclouddata which is the data of the word cloud. The function has 2 optional parametes also. One is stopwords which are the words you don't want to appear in your word cloud but exists in the provided data and the second is the padding which is the padding for the word cloud if needed.

Sample Data

Sample data used to create the word cloud :
https://api.myjson.com/bins/80zl0 and https://api.myjson.com/bins/12o1gk.