added getCanvasJSChart and helper method