PC Review


Reply
Thread Tools Rate Thread

Charts Having X Axis Scaled Using Calendar Weeks

 
 
Peter Müller
Guest
Posts: n/a
 
      13th Nov 2009
I have an "XY (Scatter)" chart ( Scatter with data points connected by
smoothed lines). I want to use to display calendar weeks as labels for
the X axis. The problem there is that at the end of a year the number
jumps from 53 to 1. I read that one can do the job be adding a second X
axis but I have no further clue. I tried to add a second X axis but I
failed.

When I choose a Line chart (line with markers displayed at each data
value) and apply the following lines

ActiveChart.SeriesCollection(1).XValues = "=Sheet1!R1C1:R39C1"
ActiveChart.SeriesCollection(2).XValues = "=Sheet1!R1C1:R39C1"
ActiveChart.SeriesCollection(3).XValues = "=Sheet1!R1C1:R39C1"
ActiveChart.SeriesCollection(4).XValues = "=Sheet1!R1C1:R39C1"

I can provide an X axis showing the calendar weeks but I can specify
precise X values for my data points. Due to the fact one can chose the
chart type and XValues to any Series object I assume that there is way
to create an X axis having the desired values.

Who can I provide such X axis?
 
Reply With Quote
 
 
 
 
Herbert Seidenberg
Guest
Posts: n/a
 
      14th Nov 2009
Excel 2007 Chart
Continuous X Y line plot by week at year end.
Secondary vertical and horizontal axis.
Manual example without code.
http://www.mediafire.com/file/2gzjxjcwutd/11_13_09.xlsx
 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      15th Nov 2009
Is your data weekly? Then make a line chart instead, with a category
(text label) axis, with one point per week.

Is your data not weekly? Hide the default X axis labels and tick marks,
and add another series. The X values will be the date you want to
correspond to each week number (e.g. Monday or Friday of each week), the
Y values will be zero (or whatever the Y minimum is), and in the next
column, list the week numbers. The series will be formatted using the
cross marker style (to simulate axis ticks) and no line.

Use one of these free Excel utilities to add the week numbers in the
third column as labels for this new series, and position them below the
points.

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



Peter Müller wrote:
> I have an "XY (Scatter)" chart ( Scatter with data points connected by
> smoothed lines). I want to use to display calendar weeks as labels for
> the X axis. The problem there is that at the end of a year the number
> jumps from 53 to 1. I read that one can do the job be adding a second X
> axis but I have no further clue. I tried to add a second X axis but I
> failed.
>
> When I choose a Line chart (line with markers displayed at each data
> value) and apply the following lines
>
> ActiveChart.SeriesCollection(1).XValues = "=Sheet1!R1C1:R39C1"
> ActiveChart.SeriesCollection(2).XValues = "=Sheet1!R1C1:R39C1"
> ActiveChart.SeriesCollection(3).XValues = "=Sheet1!R1C1:R39C1"
> ActiveChart.SeriesCollection(4).XValues = "=Sheet1!R1C1:R39C1"
>
> I can provide an X axis showing the calendar weeks but I can specify
> precise X values for my data points. Due to the fact one can chose the
> chart type and XValues to any Series object I assume that there is way
> to create an X axis having the desired values.
>
> Who can I provide such X axis?

 
Reply With Quote
 
Peter Müller
Guest
Posts: n/a
 
      22nd Nov 2009
Herbert Seidenberg wrote:
> Excel 2007 Chart
> Continuous X Y line plot by week at year end.
> Secondary vertical and horizontal axis.
> Manual example without code.
> http://www.mediafire.com/file/2gzjxjcwutd/11_13_09.xlsx


Excel 2003 shall be supported.
 
Reply With Quote
 
Peter Müller
Guest
Posts: n/a
 
      22nd Nov 2009
Jon Peltier wrote:
> Is your data weekly? Then make a line chart instead, with a category
> (text label) axis, with one point per week.


I have done it that way. For generating the data then mean for each week
is computed and for missing weeks the value is now interpolated.
 
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
y-axis versus x-axis charts =?Utf-8?B?YmlnZXNpbW0=?= Microsoft Excel Charting 1 27th Sep 2007 03:14 AM
Charts with scaled axis =?Utf-8?B?U3RldmU=?= Microsoft Excel Charting 5 13th Jun 2006 08:13 AM
53 weeks in 2004 skews x-axis year increment on charts. =?Utf-8?B?Ymoud2lsbGlhbXM=?= Microsoft Excel Charting 3 7th Apr 2006 11:45 PM
Hiding Values Below Z Axis Minimum Value on Axis Charts =?Utf-8?B?VHJ5aW5nVG9FeGNlbA==?= Microsoft Excel Charting 1 18th Feb 2005 03:55 AM
Semi-Log Plots w/User scaled Y-Axis Mike Microsoft Excel Charting 1 12th Aug 2003 11:38 PM


Features
 

Advertising
 

Newsgroups
 


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