My opinion on clearing axis labels; is that upon an update the labels should be
cleared out. I am using Timeplot to visualize data from Biofeedback. In the
case of a plot of "live" data scales of the plot can change. I have noticed
that when doing the live update the labels on the axies persist even when
scaling changes, so you will see cluttering and sometimes i see lower values,
on vertical axies, above higher values, when the plot data has changed enough.
Generating plots that don't change, this really is not an issue.
I got the showValues toggle to work. I was being a bit too aggressive clearing
labels from plot, i cleared the flag poles!
I am still working on ironing out the time axis label clutter. I think a
solution would boil down to using smaller jumps in time concepts in attempt to
cut down on clutter. for instance; displaying the time axis based on seconds
would give ~60 labels before it would switch to using minute labels. I have
gotten good results simply adding a concept of "FIVESECONDS" that would fit
between "SECOND" and "MINUTE". The data to be looked at, in this application's
case, would never really exceed 9 or 10 hours per plot, so i have not
experimented any larger than that, but i think the concept would still apply.
-ChazZ
Stefano Mazzocchi <[EMAIL PROTECTED]> wrote: ChazZ S wrote:
> Thanks for the info and the demo. Strange thing is, I looked at it this
> weekend and it worked. I came back this monday morning went back to
> inspect the code and what not, and it does not work anymore. Check or
> uncheck the showValues is always on. I did an update from source
> control, got the updated files tried it for myself and it does not seem
> to be working.
>
> I also noticed in my latest pull from source
> (http://simile.mit.edu/repository/timeplot/trunk/src/webapp/api) that
> timeplot.js, i belive, has an error in it.
>
> _clearLabels: function() {
> ---->var labels = document.getElementById("timeplot-labels");
> if (labels) this._containerDiv.removeChild();
> labels = document.createElement("div");
> labels.id = "timeplot-labels";
> this._containerDiv.appendChild(labels);
> },
>
> I think the marked line should read:
> var labels = this._containerDiv.firstChild;
>
> I dont think I have seen the labels div not be the first child. I have
> several plots on the page at any given time, so simply searching for the
> ID "timeplot-labels" just won't do.
Hmm, that's a good point. I didn't think of the case of multiple plots
on the same page. I'll revert it to the firstChild.
> It also seems that the "_clearLabels" only gets called when creating a
> new plot, and it does not get called when doing a plot.update(). Is
> that by design?
I honestly don't remember :-)
What is you opinion on that?
> -ChazZ
>
> ever wonder if a word, when misused so many times, could lose all of its
> meaning?
> now thats ironic...
>
>
> ----- Original Message ----
> From: Stefano Mazzocchi
> To: General List
> Sent: Friday, February 22, 2008 5:43:05 PM
> Subject: Re: toggling features
>
> > ChazZ S wrote:
>
> >> 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.
>
> I just fixed that in the current live Timeplot. See this timeplot for an
> example on how to use it:
>
> http://simile.mit.edu/timeplot/examples/bush/index.html
>
> --
> 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
>
>
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
--
Stefano.
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general
ever wonder if a word, when misused so many times, could lose all of its
meaning?
now thats ironic...
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search._______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general