reindeer21005 schrieb: > > I have a 150 x 150 array of values representing a 23600m x 12700m > area that I want to display in a viewport. Each single > sub-rectangle would be 23600m/150 by 12700m/150 and is color coded. > The problem is how/where to designate that my areas are rectangular. > > Can this be done on the root element or do I specify the actual size > for each rect ? I have tried different things with <svg> attributes > but I am getting squares. I guess I don't know how to tell it the > apect ratio. > > I tried different combinations using SVG Essentails book but can't get it. > > Thanks for positive comments. >
Hi reindeer the aspect ratio is determined or set by your root SVG elements viewBox. you could use a simple viewBox like this: viewBox="0 0 23600 12700" no width and height attribute, and no preserveAspectRatio( defaults to "xMidyMid meet"). that should do the trick hth Holger ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h0tcjtj/M=362335.6886445.7839731.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123692190/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> ----- 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/ <*> 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/

