added POST method for barchart
method for barchart
button for chart