I am new to JS.

I would like to create a form with the following options to be put in a page in my website.

In the page of my website, I want to create a form with the following options

Topic title
Description of the topic
Submit button

After a user enters the information as mentioned above and after clicking on the submit button. I want a textbox in the same page to add up the total amount entered by individual users visiting my website and show how much amount has been entered. This should never get deleted.

Also, want to have a bar chart in the same page showing the first 4 cities, states and categories selected by visitors visiting my website. This has to be in % wise. Even this should never get deleted.

Thanking you in advance for helping me with the code required to create this form.