RE: [svg-developers] Drawing the axes in dynamically generated SVG and placing text along them
Hi David, I don't know if my message made it through the first time. I did not get the code. If you sent it as an attachment, I suspect the list stripped it. Pranav - To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -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: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [svg-developers] Drawing the axes in dynamically generated SVG and placing text along them
Hi David, I think the list stripped the attachment. Pranav - To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -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: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[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 - To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -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: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Drawing the axes in dynamically generated SVG and placing text along them
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: svg-developers@yahoogroups.com 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: svg-developers-unsubscr...@yahoogroups.com -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: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/