Hi d1cey,

According to what you nedd, I suggest you to nest a <svg> in your SVG.
That way you can define the x, y, height, width of your new space for 
your drawing and define your co-ordinates system. Now, any child of this 
new <svg> will be placed according to the new origin.
for example, yse a structure like:
<svg>
<!-- your bottom, top, legends-->
<svg id='graphSpace' x='50' y='50' width='90%' height='90%' viewbox="0 0 
1000 1000">
<rect id='borderOfGraphSpace' x='0' y='0' hieght='1000' width='1000' 
fill='none' stroke='#ff0000'/>
<line id='crossTheGrapheSpace' x1='0' y1='0' x2='1000' y2='1000'/>
<!-- your graph description -->
</svg>
</svg>

Hope it helps

Jérôme

d1cey a écrit :

>Another question for you fine SVG gurus.
>
>I'm not exactly sure the best way to go about what I'm trying to do,
>so my questions may be naïve and perhaps a little nonsensical.
>
>It is possible to nest elements into a <g>roup and resize the group
>itself, but is it possible to give it x1, y1, x2, y2 co-ordinates for
>the resize instead? ("Okay Group, Scale yourself to fit in this
>bounding box" – type thing.)
>
>Is it possible to give co-ordinates based on a location other than the
>origin? EG: You'd like to draw a line from (10,10) to a point  10
>pixels from the bottom, and 10 pixels from the right, no matter the
>size of the window.
>
>If you hadn't guessed, I'm building a graph… But I need room at the
>top and bottom (and perhaps sides) for data (scale markers, title,
>etc.). I've tried building the grid in a group, scaling it .9, and
>translating it downward… This works well for the top, but the amount
>of space on the bottom is inconsistent (its width depends on the size
>of the browser window.)
>
>Is there a better way to do this? Am I barking up the wrong tree?
>
>Thanks to those Mighty Lords and Ladies of SVG, nurturing This
>emerging technology, who still have time to help a lowly hack such as
>myself.
>
>
>
>
>
>
>-----
>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
>
>
>
> 
>
>
>
>  
>


-- 
Jérôme Tricand de la Goutte

Société Logatique
50 rue Marcel Dassault
92100 Boulogne-Billancourt

01 46 21 59 59



-----
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/
 



Reply via email to