Frontend React project which fetches a text file and finds the 20 most frequent words and plots them in a histogram.
- Upon Clicking the
submit
button the site fetches the data from.txt
file and parses the data into a array which is mapped with the frequency of words occurence in the file. - Then using the
react-chartjs-2
library we plot the histogram of Words vs Frequency. - The Histogram is the pictorial represntation of the parsed data.
- X-axis - Words, Y-axis - Frequency of words.
- Clone the repository.
- Open repository in a code editor.
- Run
npm install
- Run
npm install react-chartjs-2
- Run
npm start
to start the script.
Want to deploy immediately? Click this button
Clicking this button will create a new repo for you that looks exactly like this one, and sets that repo up immediately for deployment on Netlify.