creating stackbar chart