A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Data point coordinate offset in embedded chart



 
 
Thread Tools Display Modes
  #1  
Old April 9th, 2009, 01:35 PM posted to microsoft.public.excel.charting
GeoBrooks
external usenet poster
 
Posts: 46
Default Data point coordinate offset in embedded chart

I've used the technique outlined at
http://peltiertech.com/WordPress/con...th-arrows-vba/ to
draw lines on an embedded chart in XL2007. But I've had to add 4 to the
calculated coordinates to make the lines connect to data points. This offset
seems to be independent of chart size.

Is there a chart property from which this offset can be derived? Or is this
just a "feature"?

George
  #2  
Old April 9th, 2009, 06:24 PM posted to microsoft.public.excel.charting
Jon Peltier
external usenet poster
 
Posts: 5,018
Default Data point coordinate offset in embedded chart

I wrote that routine in Excel 2000, and it worked until 2003. Excel 2007
charts have slightly different characteristics, including changed margins
around the plot area and chart area. I think there were small offsets in the
earlier versions, so while Excel 2007 has different offsets, it isn't wrong,
just different. Someday I may revisit that code and allow for varying
margins based on Excel version.

- Jon
-------
Jon Peltier, Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
Advanced Excel Conference - Training in Charting and Programming
http://peltiertech.com/Training/2009...00906ACNJ.html
_______


"GeoBrooks" wrote in message
...
I've used the technique outlined at
http://peltiertech.com/WordPress/con...th-arrows-vba/ to
draw lines on an embedded chart in XL2007. But I've had to add 4 to the
calculated coordinates to make the lines connect to data points. This
offset
seems to be independent of chart size.

Is there a chart property from which this offset can be derived? Or is
this
just a "feature"?

George



  #3  
Old April 10th, 2009, 12:00 AM posted to microsoft.public.excel.charting
GeoBrooks
external usenet poster
 
Posts: 46
Default Data point coordinate offset in embedded chart

So I guess we can say that a specific chart property doesn't exist, other
than that if version = 2007, then offset = +4. I can live with that.

Thanks.

George

btw, I'm not connecting data points, just drawing velocity vectors on an
animated projectile motion curve. But your solution was exactly what I
needed.

"Jon Peltier" wrote:

I wrote that routine in Excel 2000, and it worked until 2003. Excel 2007
charts have slightly different characteristics, including changed margins
around the plot area and chart area. I think there were small offsets in the
earlier versions, so while Excel 2007 has different offsets, it isn't wrong,
just different. Someday I may revisit that code and allow for varying
margins based on Excel version.

- Jon
-------
Jon Peltier, Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
Advanced Excel Conference - Training in Charting and Programming
http://peltiertech.com/Training/2009...00906ACNJ.html
_______


"GeoBrooks" wrote in message
...
I've used the technique outlined at
http://peltiertech.com/WordPress/con...th-arrows-vba/ to
draw lines on an embedded chart in XL2007. But I've had to add 4 to the
calculated coordinates to make the lines connect to data points. This
offset
seems to be independent of chart size.

Is there a chart property from which this offset can be derived? Or is
this
just a "feature"?

George




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.