Created the graph for "how long the bugs remain open"

Hi,
      I have created a pie chart for the "how long the bugs remain open". Please do have a look. 

Looking forward to your feedback.
Thank You.
nit: please do:
} else if (...

instead of 
}
else if (...

In general this logic looks good, I bet there might be a more creative way to solve this, but it is clean and easy to understand :)