add a display function to the NVD3Chart class. to be used in IPython notebook