fix(charts): Removed jquery occurences in charts
This also adds scope for the dom element and the d3 object to avoid
repetition