Playing with ReactJs ReCharts.
The code calculates the current date and gets the data from the past 7 and 30 days and populates a graph with nunmber of clients on x-axis and the date on y axis.
Steps:
- Create a react app : npx or npm create-react-app my-app
- npm install recharts
- Replace the App.js in the 'my-app' project with this app.js file.
- npm start