Drawing a graph by script

Björnke von Gierke bvg at mac.com
Sun Mar 1 06:44:19 EST 2009


The easiest way would be to buy malte's new chart engine (available on  
the rev site).

If you're more interested in the learning experience, i suggest  
setting the points of a graphic. if you have an empty line in the  
points of a graphic, the two points above and below it won't be  
connected, so you can even make the grid and the actual graph from the  
same graphic. It's very easy to scale this to several heights: Just  
use a very large rect as orignal, then shrink to your desired size.

On the other hand, if you set the markers, you'll get graph markers  
for free, so to say. But then you can't use the same graphic for  
everything at once.

On 28 Feb 2009, at 21:13, Mark Swindell wrote:

> What would be the best way to draw a simple graph by script?
>
> All I need is a rectangle with horizontal lines drawn across it at  
> the correct intervals (height/100) or whatever the number of lines  
> is to be.  I've been looking in the docs but still not sure how to  
> implement this.   I also played around with using a list field and  
> setting the line height, but this isn't as accurate as I'd like.

-- 

official ChatRev page:
http://bjoernke.com/runrev/chatrev.php

Chat with other RunRev developers:
go stack URL "http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev"




More information about the use-livecode mailing list