Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 24
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   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
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   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 24
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
coordinate of cursor on a chart AA2e72E Charts and Charting in Excel 3 September 16th 08 03:35 PM
Creating a 3rd axis (or coordinate) in Excel chart Microsoft Newsgroups[_2_] Charts and Charting in Excel 0 July 25th 08 07:42 PM
Embedded Chart doesn't show data value on treadline. Moses Charts and Charting in Excel 1 January 5th 06 04:34 PM
can excel draw a chart in a coordinate plane larry S Charts and Charting in Excel 2 April 1st 05 11:14 PM
Creating an x,y coordinate chart smintey Charts and Charting in Excel 2 December 9th 04 04:01 PM


All times are GMT +1. The time now is 10:07 PM.

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

About Us

"It's about Microsoft Excel"