PC Review


Reply
Thread Tools Rate Thread

Drawing on a Chart

 
 
Ron H.
Guest
Posts: n/a
 
      13th Dec 2007
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 With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      13th Dec 2007
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." <(E-Mail Removed)> wrote in message
news:476124a7$0$26631$(E-Mail Removed)...
>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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing shapes in a chart =?Utf-8?B?Q2hhZFRhcmdldA==?= Microsoft Excel Charting 1 21st Sep 2006 09:07 AM
Drawing on a chart =?Utf-8?B?U3RldmU=?= Microsoft Excel Worksheet Functions 2 8th Jun 2006 01:28 AM
drawing a chart on a report talktobatchu Microsoft Access Reports 1 23rd Sep 2004 09:13 PM
Drawing a Graph or chart =?Utf-8?B?TGVpbGE=?= Windows XP Basics 4 8th May 2004 02:42 PM
Drawing a Pie Chart Pam Microsoft Word Document Management 2 3rd Oct 2003 10:23 AM


Features
 

Advertising
 

Newsgroups
 


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