d3py icon indicating copy to clipboard operation
d3py copied to clipboard

Have multiple javascript functions in client

Open mynameisfiber opened this issue 13 years ago • 0 comments

We should have multiple functions available to add to from the geometries in the figure object. Two that are required are an init function and a draw function. New functions should handled as well.

In my opinion, this should be done with a dictionary of javascript functions which are merged under addition before rendering. Merging javascript function objects appends them to another so we should be fine.

Also, is there a way to define a scope within a javascript block (similar to wrapping code in {}'s in C code)? This would help with variable munging when we concatenate functions.

mynameisfiber avatar Mar 13 '12 13:03 mynameisfiber