Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Drawing on a Chart

I am using VBA in Excel to model some alignment errors in a test fixture.
The output is a multiple series scatter chart of the data. If I calculate
the center and radius of a circle that fits a part of the data (least
squares fit method), how can I draw the circle on a chart?

Ron H.



-----------------
www.Newsgroup-Binaries.com - *Completion*Retention*Speed*
Access your favorite newsgroups from home or on the road
-----------------
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Drawing on a Chart

Hi,

The simplest way is to use a series to draw the circle.
Add an extra data series to the chart plotted as xy-scatter line no markers.

You can calculate the circle using basic trig formula.

Assume,
X Center in cell D1
Y Center in cell E1
Radius in cell F1
Range G1:G360
Circle XY points in range G1:H360

G1: =$D$1+(COS(ROW()*(PI()/180))*$F$1)
H1: =$E$1+(SIN(ROW()*(PI()/180))*$F$1)

copy down for 360 rows.

Cheers
Andy
--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Ron H." wrote in message
...
I am using VBA in Excel to model some alignment errors in a test fixture.
The output is a multiple series scatter chart of the data. If I calculate
the center and radius of a circle that fits a part of the data (least
squares fit method), how can I draw the circle on a chart?

Ron H.



-----------------
www.Newsgroup-Binaries.com - *Completion*Retention*Speed*
Access your favorite newsgroups from home or on the road
-----------------


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
Drawing a line on a chart ExcelGeek75 Charts and Charting in Excel 4 March 12th 10 01:00 PM
Drawing shapes in a chart ChadTarget Charts and Charting in Excel 1 September 21st 06 09:07 AM
Drawing on a chart Steve Excel Worksheet Functions 2 June 8th 06 01:28 AM
Drawing a line in bar chart Julien Charts and Charting in Excel 1 January 6th 06 10:13 AM
= Drawing more lines in a OHLCV chart = hcova Charts and Charting in Excel 1 December 13th 04 04:57 AM


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

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"