[Tutor] How to create variable length bar chart ??

ALAN GAULD alan.gauld at btinternet.com
Wed Dec 6 22:46:06 CET 2006


--- Asrarahmed Kadri <ajkadri at googlemail.com> wrote:

> I got that point, what I want is how the dimensions of the
> canvas would be
> adjusted so as to incorporate this Y-axis variable length?
> 

You provide the size of the canvas when you create 
it normally. But you can use at least 2 approaches.

1) Given the fixed size of your canvas you can 
scale the graphs to fit - keeping track oof the 
longest X and Y measures and scaling against the corresponding
size of the canvas.

or

2) Scale the canvas to match the graphs.
If the canvas gets bigger than a certain size
(maybe related to screen size?) youi can add 
scroll bars.

HTH,

Alan G.


		
___________________________________________________________ 
All New Yahoo! Mail – Tired of Vi at gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html


More information about the Tutor mailing list