bar chart by finding percent way right one before one its wrong code