Dynamically updated graph HELP

I have BIG troubles using this add on. I want to make a dynamically updated chart, like in example. I want to show it in main window and i dont want those 3k lines of code in my application. I would be very grateful if someone writes an application which behaves exactly as update once per second graph, but main window show only chart and nothing else. I use vaadin only for 2 days and deep analysis of “why it doesn’t work” cant be done by me. in the code I wrote [quote]
JavaScriptException: (TypeError): Cannot read property ‘Chart’ of undefined
[/quote] is shown in ?debug url. Also Tutorials for these would be very nice, because there is absolutely nothing except demo. Which is not a tutorial neither.
12474.jar (2.6 KB)