E1455, Refactoring the Chart helper

What it does: 
1) This helper/chart class provides the templates of data. It also has pie diagrams and charts for the data.
2) Also contains fixes to display bar, line and pie charts. 

The code does not have comments explaining what it does. Please add comments to the code.