chart functions for risk and common violations

chart functions for risk and common violations
Added unit tested and working. Raw ' exception fixed
in makeChart