Changes enumerated in comment box

- Added Legends in pie charts
- Fixed issue in getClassName function
- Added custom colour palette config