I should add that simply taking the latest datapoint and having newDatas be a List of one (Double, Double) works.
Unfortunately now my graph is updating as a (somewhat) separate series. Does anyone know why this would happen? My guess, naturally, is somehow the series are getting mixed up from the creation in the Comet listener's localSetup method to its use later in the highPriority method. Peter On Jul 22, 4:43 pm, Peter Robinett <pe...@bubblefoundry.com> wrote: > Hi all, > > I'm trying to use the flot widget and some Comet code to have a > regularly updating chart like in the flotDemo's flot-comet page. > Unfortunately, my chart wasn't updating and I found I was using > JsFlotAppendData incorrectly. Looking at the source code I see that > the datas and newDatas parameters must be the same length. > > My question is, why? This strikes me as funny, since the former is a > List [FlotSerie] and the latter is a List [(Double, Double)]. I was > trying to pass in a List of one FlotSerie (I have one line on the > chart) and a List of many Pairs (there have been many updates). Where > did I go wrong in my understanding? Given the requirement, how should > my data be formatted to be passed to JsFlotAppendData correctly? > > Thanks, > Peter Robinett > > [1]:http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/widgets/flot... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---