On Thu, Nov 29, 2012 at 11:49 PM, Joe Walnes <
j...@walnes.com> wrote:
> Hi Amit
>
> You don't need to worry about the jQuery.noConflict() stuff with
> SmoothieCharts. The document your refer to is only relevant for using jQuery
> with libraries that also try to define a $ shortcut. SmoothieCharts doesn't
> do this, so it works with jQuery our of the box. You can remove that call
> and go back to using the $ shortcut if you wish.
>
> Here are some issues I can see in the code:
> * Lines 19-23 (creating SmoothieChart, adding timeline, streamTo) should be
> called once, and only once. Currently nothing calls them at all. Move these
> to the document-ready function.
> * Lines 17-18 (appending data to the timeseries) should be called whenever
> you get more data (e.g. in the dynamic_stats() function).
> * You attempt to set title from the #hostname element, which doesn't exist
> (though that should not cause an error). Just pointing it out.
Thanks for the suggestions. Does this look OK :
Unfortunately, that doesn't work either. The dynamic_stats( ) function