Now that my traveling is over I finally have some time to sit down and answer your questions.
Sorry about the delay in doing so. ChazZ S wrote: > Again, i offer my apologies. I got impatient (higher ups riding my arse > about details...) and took it out here, which was the wrong idea. No, no need to apologize. Dealing with such things and under pressure can be frustrating, and I understand very well that feeling. > Unfortunately I do not have any public URLs for you to look at. I am > using this lib as a kind reporting mechanism for the desktop end of our > application OptimalOffice(http://www.logisens.com/optimaloffice). The > user would navigate to web page served by desktop app. Timeplot lives > there and is served from there. I can provide screen shots of some > visual issues if that is ok; and provide code snippets. Ok, that should be enough. > I have, however, managed to figure out some of the technical issues i > was having like the problems i was having with running Timeplot > "offline" turns out there was a small logic error in directory > structure in build scripts. Such as? I would like to fix it so that others don't run into it as well. > As of now my outstanding questions involve > how i can use Timeplot and work with its features, all the while getting > a more in-depth education on JavaScript (i don't expect to solve JS > issues here). > > First Question: > I haven't quite figured out how one can toggle the "showValues" feature > on and off on the fly. I would ultimately like to click on a > control(checkbox or something) to toggle the showValues. I tried to > access a plot's plotInfos, after creating and populating the plot, to > change the showValues property to no avail. > > ['plot' created via TimePlot.create()] > ... > plot._plotInfos[0]['showValues'] = enable; > this.plot.update(); > this.plot.repaint(); > > Looking in the JSdoc i did not see an obvious way to change plotInfos > without creating a whole new plot. Oh, I see. Yeah, I didn't think of that case: the Timeplot.Plot makes a local copy of that value at initialization and then forgets to check back. It should be an easy fix, I'll do that right after this. > Second Question: > is it possible to set the precision of axis labels? along the vertical > axis i some times see "overly precise" values. for example: > "0.90000000000000001" anyway I could cut that down to "0.900"? Hmm, no, not right now. One way to do it would be to add a "precision" value to the plotInfo and chop the string at that.... anybody knows a printf function in javascript? > Third Question: > I am not sure if this is a bug or what. I have a feature that a plot > can "auto update". I do a loadText on the plot's EventSource then an > update() and repaint() on the plot. as i do this it seems that the > labelling is not getting cleared out when repainting. The times along > the bottom appear to stay there and new ones drawn in over old ones, > becoming a mess. Same goes with vertical axies. I am not clearing out > the EventSource i am simply loading data from the time it left off to > present, so im effectively adding more data. I can post screen shots of > these effects if that would help. Have you tried calling the Timeplot.Geometry.reset() method? -- Stefano Mazzocchi Digital Libraries Research Group Research Scientist Massachusetts Institute of Technology E25-131, 77 Massachusetts Ave skype: stefanomazzocchi Cambridge, MA 02139-4307, USA email: stefanom at mit . edu ------------------------------------------------------------------- _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
