[EMAIL PROTECTED] wrote:
> For what it's worth, I was just about to make this same inquiry.
> 
> My 2 cents:
> 
> -- To make timeplot useful to the widest audience, one should be able to
> specify something like the argument to a sprintf statement for how values
> are displayed in a plot. (with some reasonable default)

Hmmm, javascript doesn't come with sprintf and it's not exactly the most
fun routine to implement.

A much more javascript-friendly idea (and also easier to implement) is
for Timeplot to allow you to pass your own "labeling" function that
receives a number and spits out a string. So you can be responsible for
your own formatting.

That would be rather simple to implement.

> -- One should also be able to either fix the vertical range (as is the
> case now) or calculate the vertical range on the fly. For example,
> sometimes you want the vertical range to auto scale as the max and min
> values of the data change. However sometimes you want a fixed scale so you
> can quickly look at a plot and judge the significance of a change.

You can do that right now:

var geometry = new Timeplot.DefaultValueGeometry({
    max: 100,
    min: 0
});

The geometry will alter itself in case the values are above or below the
max/min (Timeplot never plots stuff out of the plotting canvas), but if
you know that those values are above and below yours, it will just 'fix'
the geometry for you.

It can also be possible to add a flag for timeplot to avoid resizing the
geometry even if the values are above or below the min/max, but I never
came across a reason for that.

HTH

-- 
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

Reply via email to