Hi,

I am new here.

I would like to have a chart (bar chart) in my website.

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

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.

Idea behind this is I want to create a website where users can discuss their stories of how and when they have paid bribe. To make my website for interactive, I want users to fill a form with the options mentioned above. After the user enters the information, the same has to be shown in the form of bar chart.


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