[ANN] chartsEngine - now on revSelect

Malte Brill revolution at derbrill.de
Fri Feb 20 09:39:49 EST 2009


Thanks a heap. Will test that for v1.1

Sarah: You had a major part in making it happen. Thanks again for the  
random data code. :)

Victorias: I hope it is useful.


chartsCreateChart can take additional parameters. The first one being  
the name of the group you create, followed by a rectangle. This  
rectangle can of course be off screen. Right now chartsEngine always  
draws on the current card of the topstack, but most likely this will  
be extended in the next iteration.

Here is a quick demo script (out of the top of my head, so watch for  

on mouseUp pMouseBtnNo
     local tChart
     chartsCreateChart "myChart",0,-700,700,0
     -- only needed once! Or use any existing group, with lockloc set  
to true.
     put the result into tChart
     set the charts["data"] of tChart to "120,2"&cr&"2,120"
     -- now set your properties
     chartsRefresh tChart
      -- turn it into an image
      export snapshot from rect (the rect of tChart) of tChart to file  
"/path/to/file" as PNG
end mouseUp

More information about the Use-livecode mailing list