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.
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?
-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 <[EMAIL PROTECTED]>
To: General List <[email protected]>
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.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general