PC Review


Reply
Thread Tools Rate Thread

how can I automate chart axes

 
 
Giles
Guest
Posts: n/a
 
      6th Jul 2008
I'm generating chi-square charts that are dependent of the degrees of freedom
and probability, hence each chart has a different shape. How can I automate
the scales to be dependent on individual chi-squared data series. For
example, if a series has DoF of 45 and I'm looking for a probability of 0.1,
then the x-axis has, say, a Min of 15 and a Max of 80, and the Y axix has a
Min of 0 and a Max of 0.08.

I'd rather not have to resort to VBA

Thanks
 
Reply With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      7th Jul 2008
Hi,

The scale min and max values can either be automatic or static fixed values.
If you want dynamic fixed values you will have to resort to vba.

Cheers
Andy
--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Giles" <(E-Mail Removed)> wrote in message
news:3A61C74C-2861-407C-A3A6-(E-Mail Removed)...
> I'm generating chi-square charts that are dependent of the degrees of
> freedom
> and probability, hence each chart has a different shape. How can I
> automate
> the scales to be dependent on individual chi-squared data series. For
> example, if a series has DoF of 45 and I'm looking for a probability of
> 0.1,
> then the x-axis has, say, a Min of 15 and a Max of 80, and the Y axix has
> a
> Min of 0 and a Max of 0.08.
>
> I'd rather not have to resort to VBA
>
> Thanks


 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      7th Jul 2008
This web page explains how to use VBA to link axis scales to calculated
worksheet values:

http://peltiertech.com/Excel/Charts/...nkToSheet.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Andy Pope" <(E-Mail Removed)> wrote in message
news:681CC317-4B8E-4C68-AE00-(E-Mail Removed)...
> Hi,
>
> The scale min and max values can either be automatic or static fixed
> values.
> If you want dynamic fixed values you will have to resort to vba.
>
> Cheers
> Andy
> --
>
> Andy Pope, Microsoft MVP - Excel
> http://www.andypope.info
> "Giles" <(E-Mail Removed)> wrote in message
> news:3A61C74C-2861-407C-A3A6-(E-Mail Removed)...
>> I'm generating chi-square charts that are dependent of the degrees of
>> freedom
>> and probability, hence each chart has a different shape. How can I
>> automate
>> the scales to be dependent on individual chi-squared data series. For
>> example, if a series has DoF of 45 and I'm looking for a probability of
>> 0.1,
>> then the x-axis has, say, a Min of 15 and a Max of 80, and the Y axix has
>> a
>> Min of 0 and a Max of 0.08.
>>
>> I'd rather not have to resort to VBA
>>
>> Thanks

>



 
Reply With Quote
 
Giles
Guest
Posts: n/a
 
      8th Jul 2008
Thanks Andy and Jon,

This was most helpful. Ironically though, I decided to keep the axes
constant so my students can see the evolution of Chi-squared as the degrees
of freedom are increased. As is, I can cover DoFs ranging from 10 to 170
without the curve busting out. For smaller DoFs (i.e, contingency tables)
I'll use a seperate worksheet.
I'll try Jon's code, but currently I'm in the middle of "orientation" - I
can't believe it possible that so many 18 year olds could congregate in one
place.

Giles

"Giles" wrote:

> I'm generating chi-square charts that are dependent of the degrees of freedom
> and probability, hence each chart has a different shape. How can I automate
> the scales to be dependent on individual chi-squared data series. For
> example, if a series has DoF of 45 and I'm looking for a probability of 0.1,
> then the x-axis has, say, a Min of 15 and a Max of 80, and the Y axix has a
> Min of 0 and a Max of 0.08.
>
> I'd rather not have to resort to VBA
>
> Thanks

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      9th Jul 2008
Scary thought...

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Giles" <(E-Mail Removed)> wrote in message
news:540091A9-50DE-4846-9892-(E-Mail Removed)...
> Thanks Andy and Jon,
>
> This was most helpful. Ironically though, I decided to keep the axes
> constant so my students can see the evolution of Chi-squared as the
> degrees
> of freedom are increased. As is, I can cover DoFs ranging from 10 to 170
> without the curve busting out. For smaller DoFs (i.e, contingency tables)
> I'll use a seperate worksheet.
> I'll try Jon's code, but currently I'm in the middle of "orientation" - I
> can't believe it possible that so many 18 year olds could congregate in
> one
> place.
>
> Giles
>
> "Giles" wrote:
>
>> I'm generating chi-square charts that are dependent of the degrees of
>> freedom
>> and probability, hence each chart has a different shape. How can I
>> automate
>> the scales to be dependent on individual chi-squared data series. For
>> example, if a series has DoF of 45 and I'm looking for a probability of
>> 0.1,
>> then the x-axis has, say, a Min of 15 and a Max of 80, and the Y axix has
>> a
>> Min of 0 and a Max of 0.08.
>>
>> I'd rather not have to resort to VBA
>>
>> Thanks



 
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
2 axes chart Sara Tanner Microsoft Powerpoint 0 5th Nov 2007 03:31 AM
Chart Error when using Chart Line - Column on 2 Axes in vba code =?Utf-8?B?Sm9obg==?= Microsoft Excel Programming 2 3rd Aug 2007 02:42 PM
Having two X-axes on same chart Boon8888 Microsoft Excel Misc 1 23rd Mar 2006 09:49 PM
Is it possible to add more than 2 x-axes to a chart? mgoold2002@hotmail.com Microsoft Excel Programming 1 21st Jan 2006 11:50 AM
chart with two axes =?Utf-8?B?Z3Jhdnlfa2VhdHM=?= Microsoft Access 0 9th Jul 2005 08:22 AM


Features
 

Advertising
 

Newsgroups
 


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