@ayy,
Kindly make sure that chart is rendered before get method is used.
If the issue still persists, can you kindly create a jsfiddlereproducing the same so that we can understand your requirements better and help you out.
_________
Indranil Deo,
Team CanvasJS