When I use this code: The graphic is showed like a static image instead of a dinamic graphic as the documention suggests. Should I use some javascript reference to do it correcly?