David,

That's a wonderful example for me and for the knowledge base in this 
group.  I learnt several things about the DOM as well.

The loop I used in my second post to this thread 
(http://tech.groups.yahoo.com/group/svg-developers/message/57931) ran 
surprisingly fast for 3000 nodes.

Thanks again,

Simon

--- In [email protected], "ddailey" <[EMAIL PROTECTED]> wrote:
>
> simonshutter wrote:
> 
> Say I had a gui element that toggled the state of my svg by 
capturing 
> the click event and swapped y values.  An example data set could 
> comprise absolute and cumulative values:
> 
> X    Yabsolute    Ycumulative
> 1       3            3
> 2       5            8
> 3       2           10
> 4       4           14
> 
> Hope this help explain a little more clearly what I'm trying to do.
> 
> Thanks, Simon
> ------------------
> 
> If I understand what you're asking, then you'll have to loop 
through the rows of your dataset to accomplish the task. I don't 
think hundreds of points would be a problem, though thousands might 
be, and tens of thousands probably would be.
> 
> Take a look at http://srufaculty.sru.edu/david.dailey/svg/swapY.svg 
as an example. It's a bit terse so holler if something doesn't make 
sense.
> 
> Another approach would be to render both functions f(x)=Yabsolute   
and f(x)=Ycumulative when you first do any plotting, but to put the 
chart of the second function in an invisible group. Then you could 
just merely toggle the visibility of that group. This would save 
during run-time but cost at startup time. If you had more than two 
functions, like say dozens, then this technique would become unwieldy.
> 
> Hope this helps,
> David
> 
> [Non-text portions of this message have been removed]
>




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to