updates to chart directive
watching changes for the directive correctly
new features on chart directive
pattern option
added multiple patterns to choose from
added comments