Well, this draws a grid from 0% to 100% both horizontally and vertically. Don't 
know if it will be of help or not, but the code should be pretty easy to follow.

cheers
David
  ----- Original Message ----- 
  From: Pranav Lal 
  To: [email protected] 
  Sent: Sunday, December 05, 2010 8:23 PM
  Subject: [svg-developers] Drawing the axes in dynamically generated SVG and 
placing text along them


    
  Hi all,

  I am generating a SVG graph dynamically using Excel's chart object. Excel
  does not give me the coordinates for the axes so I need to add them
  manually. In addition, I need to place the text along the axes. If the
  creator of the chart has used data labels, then this is not a problem since
  I can use their left and top properties to do the positioning. However, if
  data labels are not used, I have not found any way to place the text since
  Excel does not expose this functionality. The same applies to placing text
  along the axes. What algorithm could I use to draw the axes? I can get the
  minimum and maximum value, in terms of coordinates of the axis so have tried
  drawing a polyline from the minimum to the maximum value but that has not
  helped.

  A sample graph is at http://dl.dropbox.com/u/3688386/d02.svg

  Pranav



  

[Non-text portions of this message have been removed]



------------------------------------

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

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