#### How chart time scale x-axis with another date serie

```Hello all. I have this problem, I will need to create this chart that I don't
know how to.

Serie 1 is below which needs to be time scaled
Date                Count
1/1/2006             12
1/2/2006             3
1/3/2006             5
2/1/2006             18
2/3/2006             4
2/18/2006           9
4/1/2006             18
7/4/2006             38

Serie 2 - needs to plot the three dates in serie 1's time scaled X-Axis with
symbols.

1/31/2006
2/18/2006
4/2/2006

I will look something like you have a line of count on a time-scaled chart,
with 3 dates point in the x-axis.  Please give me some advice on how to do
it. Thank you all.

```
 0
luvgreen (16)
11/10/2006 8:44:01 PM
excel.charting 18370 articles. 0 followers.

4 Replies
851 Views

Similar Articles

[PageSpeed] 18

```Make the chart with the first series as a line chart with a time scale axis.

Add the data for the second series. Convert this series to an XY series
(select the series, Chart menu > Chart Type). Put the XY series onto the
primary axis (double click, Axis tab).

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

"luvgreen" <luvgreen@discussions.microsoft.com> wrote in message
news:6452C196-F731-417E-9626-C4F3159B9D1F@microsoft.com...
> Hello all. I have this problem, I will need to create this chart that I
> don't
> know how to.
>
> Serie 1 is below which needs to be time scaled
> Date                Count
> 1/1/2006             12
> 1/2/2006             3
> 1/3/2006             5
> 2/1/2006             18
> 2/3/2006             4
> 2/18/2006           9
> 4/1/2006             18
> 7/4/2006             38
>
> Serie 2 - needs to plot the three dates in serie 1's time scaled X-Axis
> with
> symbols.
>
> 1/31/2006
> 2/18/2006
> 4/2/2006
>
> I will look something like you have a line of count on a time-scaled
> chart,
> with 3 dates point in the x-axis.  Please give me some advice on how to do
> it. Thank you all.
>
>
>

```
 0
jonxlmvpNO (4558)
11/10/2006 9:02:41 PM
```Jon:

question too. :)

Is it possible to generate this kind of chart from VBA code? Thanks again.

"Jon Peltier" wrote:

> Make the chart with the first series as a line chart with a time scale axis.
>
> Add the data for the second series. Convert this series to an XY series
> (select the series, Chart menu > Chart Type). Put the XY series onto the
> primary axis (double click, Axis tab).
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> http://PeltierTech.com
> _______
>
>
> "luvgreen" <luvgreen@discussions.microsoft.com> wrote in message
> news:6452C196-F731-417E-9626-C4F3159B9D1F@microsoft.com...
> > Hello all. I have this problem, I will need to create this chart that I
> > don't
> > know how to.
> >
> > Serie 1 is below which needs to be time scaled
> > Date                Count
> > 1/1/2006             12
> > 1/2/2006             3
> > 1/3/2006             5
> > 2/1/2006             18
> > 2/3/2006             4
> > 2/18/2006           9
> > 4/1/2006             18
> > 7/4/2006             38
> >
> > Serie 2 - needs to plot the three dates in serie 1's time scaled X-Axis
> > with
> > symbols.
> >
> > 1/31/2006
> > 2/18/2006
> > 4/2/2006
> >
> > I will look something like you have a line of count on a time-scaled
> > chart,
> > with 3 dates point in the x-axis.  Please give me some advice on how to do
> > it. Thank you all.
> >
> >
> >
>
>
>
```
 0
luvgreen (16)
11/10/2006 9:15:01 PM
```If you can do it manually, you can do it in VBA.

I have a bunch of examples and hints on programming Excel charts:

http://peltiertech.com/Excel/ChartsHowTo/QuickChartVBA.html

Use the macro recorder (one of my two favorite programming tools, Google's
the other) to get some rough code, and use the page above to refine it.
Basically, record a macro while making a line chart and then changing one
series to an XY style.

The macro first looks something like this:

Sub Macro1()
' Macro recorded 11/10/2006 by Jon Peltier
Range("B6:C13").Select
ActiveChart.ChartType = xlLineMarkers
ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("B6:C13")
ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1"
ActiveWindow.Visible = False
Windows("Book3").Activate
Range("E6:F11").Select
Selection.Copy
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.ChartArea.Select
ActiveChart.SeriesCollection.Paste Rowcol:=xlColumns,
SeriesLabels:=True, _
CategoryLabels:=True, Replace:=False, NewSeries:=True
ActiveChart.SeriesCollection(2).Select
Application.CutCopyMode = False
ActiveChart.SeriesCollection(2).ChartType = xlXYScatterLines
ActiveChart.SeriesCollection(2).Select
ActiveChart.SeriesCollection(2).AxisGroup = 1
End Sub

Fix it up a little:

Sub Macro1()
' Macro fixed up 11/10/2006 by Jon Peltier
Dim cht As Chart
Dim wks As Worksheet
Dim srs As Series

Set wks = ActiveSheet
Set cht = wks.ChartObjects.Add(250, 150, 450, 250).Chart
With cht
.SetSourceData Source:=wks.Range("B6:C13")
.ChartType = xlLineMarkers
Set srs = .SeriesCollection.NewSeries
With srs
.Values = wks.Range("F7:F11")
.XValues = wks.Range("E7:E11")
.Name = wks.Range("F6")
.ChartType = xlXYScatterLines
.AxisGroup = 1
End With
End With
End Sub

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

"luvgreen" <luvgreen@discussions.microsoft.com> wrote in message
news:6CC1F590-F689-4BFC-8992-80241F7398EE@microsoft.com...
> Jon:
>
> question too. :)
>
> Is it possible to generate this kind of chart from VBA code? Thanks again.
>
> "Jon Peltier" wrote:
>
>> Make the chart with the first series as a line chart with a time scale
>> axis.
>>
>> Add the data for the second series. Convert this series to an XY series
>> (select the series, Chart menu > Chart Type). Put the XY series onto the
>> primary axis (double click, Axis tab).
>>
>> - Jon
>> -------
>> Jon Peltier, Microsoft Excel MVP
>> Tutorials and Custom Solutions
>> http://PeltierTech.com
>> _______
>>
>>
>> "luvgreen" <luvgreen@discussions.microsoft.com> wrote in message
>> news:6452C196-F731-417E-9626-C4F3159B9D1F@microsoft.com...
>> > Hello all. I have this problem, I will need to create this chart that I
>> > don't
>> > know how to.
>> >
>> > Serie 1 is below which needs to be time scaled
>> > Date                Count
>> > 1/1/2006             12
>> > 1/2/2006             3
>> > 1/3/2006             5
>> > 2/1/2006             18
>> > 2/3/2006             4
>> > 2/18/2006           9
>> > 4/1/2006             18
>> > 7/4/2006             38
>> >
>> > Serie 2 - needs to plot the three dates in serie 1's time scaled X-Axis
>> > with
>> > symbols.
>> >
>> > 1/31/2006
>> > 2/18/2006
>> > 4/2/2006
>> >
>> > I will look something like you have a line of count on a time-scaled
>> > chart,
>> > with 3 dates point in the x-axis.  Please give me some advice on how to
>> > do
>> > it. Thank you all.
>> >
>> >
>> >
>>
>>
>>

```
 0
jonxlmvpNO (4558)
11/11/2006 2:44:21 AM
```Thank you so very much Jon. I do appreciate your kindness to help.

"Jon Peltier" wrote:

> If you can do it manually, you can do it in VBA.
>
> I have a bunch of examples and hints on programming Excel charts:
>
>     http://peltiertech.com/Excel/ChartsHowTo/QuickChartVBA.html
>
> Use the macro recorder (one of my two favorite programming tools, Google's
> the other) to get some rough code, and use the page above to refine it.
> Basically, record a macro while making a line chart and then changing one
> series to an XY style.
>
> The macro first looks something like this:
>
> Sub Macro1()
> ' Macro recorded 11/10/2006 by Jon Peltier
>     Range("B6:C13").Select
>     ActiveChart.ChartType = xlLineMarkers
>     ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("B6:C13")
>     ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1"
>     ActiveWindow.Visible = False
>     Windows("Book3").Activate
>     Range("E6:F11").Select
>     Selection.Copy
>     ActiveSheet.ChartObjects("Chart 1").Activate
>     ActiveChart.ChartArea.Select
>     ActiveChart.SeriesCollection.Paste Rowcol:=xlColumns,
> SeriesLabels:=True, _
>         CategoryLabels:=True, Replace:=False, NewSeries:=True
>     ActiveChart.SeriesCollection(2).Select
>     Application.CutCopyMode = False
>     ActiveChart.SeriesCollection(2).ChartType = xlXYScatterLines
>     ActiveChart.SeriesCollection(2).Select
>     ActiveChart.SeriesCollection(2).AxisGroup = 1
> End Sub
>
> Fix it up a little:
>
> Sub Macro1()
> ' Macro fixed up 11/10/2006 by Jon Peltier
>     Dim cht As Chart
>     Dim wks As Worksheet
>     Dim srs As Series
>
>     Set wks = ActiveSheet
>     Set cht = wks.ChartObjects.Add(250, 150, 450, 250).Chart
>     With cht
>         .SetSourceData Source:=wks.Range("B6:C13")
>         .ChartType = xlLineMarkers
>         Set srs = .SeriesCollection.NewSeries
>         With srs
>             .Values = wks.Range("F7:F11")
>             .XValues = wks.Range("E7:E11")
>             .Name = wks.Range("F6")
>             .ChartType = xlXYScatterLines
>             .AxisGroup = 1
>         End With
>     End With
> End Sub
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> http://PeltierTech.com
> _______
>
>
> "luvgreen" <luvgreen@discussions.microsoft.com> wrote in message
> news:6CC1F590-F689-4BFC-8992-80241F7398EE@microsoft.com...
> > Jon:
> >
> > question too. :)
> >
> > Is it possible to generate this kind of chart from VBA code? Thanks again.
> >
> > "Jon Peltier" wrote:
> >
> >> Make the chart with the first series as a line chart with a time scale
> >> axis.
> >>
> >> Add the data for the second series. Convert this series to an XY series
> >> (select the series, Chart menu > Chart Type). Put the XY series onto the
> >> primary axis (double click, Axis tab).
> >>
> >> - Jon
> >> -------
> >> Jon Peltier, Microsoft Excel MVP
> >> Tutorials and Custom Solutions
> >> http://PeltierTech.com
> >> _______
> >>
> >>
> >> "luvgreen" <luvgreen@discussions.microsoft.com> wrote in message
> >> news:6452C196-F731-417E-9626-C4F3159B9D1F@microsoft.com...
> >> > Hello all. I have this problem, I will need to create this chart that I
> >> > don't
> >> > know how to.
> >> >
> >> > Serie 1 is below which needs to be time scaled
> >> > Date                Count
> >> > 1/1/2006             12
> >> > 1/2/2006             3
> >> > 1/3/2006             5
> >> > 2/1/2006             18
> >> > 2/3/2006             4
> >> > 2/18/2006           9
> >> > 4/1/2006             18
> >> > 7/4/2006             38
> >> >
> >> > Serie 2 - needs to plot the three dates in serie 1's time scaled X-Axis
> >> > with
> >> > symbols.
> >> >
> >> > 1/31/2006
> >> > 2/18/2006
> >> > 4/2/2006
> >> >
> >> > I will look something like you have a line of count on a time-scaled
> >> > chart,
> >> > with 3 dates point in the x-axis.  Please give me some advice on how to
> >> > do
> >> > it. Thank you all.
> >> >
> >> >
> >> >
> >>
> >>
> >>
>
>
>
```
 0
luvgreen (16)
11/13/2006 2:32:02 PM

Similar Artilces:

Legend on Chart
I am updating chart that includes three years of data and want to add 2008. The data has transferred, but the legend shows 2007,2008,2006. How can I get 2008,2007,2006 in order in the legend? Change the order of the series. Double click on one series, and go to the Series Order tab. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "Double L" <Double L@discussions.microsoft.com> wrote in message news:4CAE4FE5-4390-4D48-BF68-CAA1CDA2BC65@microsoft.com... >I am updating char...

Demographic chart?
Hi, I need to create a demographic chart in Excel, but I can't find the proper chart type. Is there a suitable chart type? I've gone through all options I can think of for a regular bar chart. (In my world, a demographic chart is a bar chart with the values pointing in two different directions... Not very complicated, but Excel doesn't seem to agree with me!) Does anyone know of an adequate solution? BR - Aggie Hi, They are also known as Tornado charts or population pyramids. http://peltiertech.com/Excel/Charts/tornadochart.html http://tushar-mehta.com/excel/software/torna...

Excel 2007 Line Chart with Markers
I'm using a Line Chart With Markers tracking 4 data lines: Red with Circles Black with Squares Blue with Diamonds Yellow with Triangles The yellow with triangles is very light and doesn't show very well in my PP presentation. I would like to change the color of just that one line. How do I do that? Click on that series in the chart, and right click, format series. You should now be able to change the color of the series. -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "Bishop" wrote: > I'm using a Line Chart With Markers...

quick charting question for similar charts on multiple sheets
Hi, just wondering if there is a quick solution to my problem. I have several charts, all virtually identical except for the data values in them, and i have one chart per sheet, and about 100 sheets. The problem is that some charts are positioned slightly different on their respective sheets then others on other sheets, although some are identical from sheet to sheet aswell. Just wondering if there is a quick way to select them all, line them up identically on each sheet, with all the same size/formating etc.? Thanks. -- Boon8888 -----------------------------------------------------...

weeky time "bucket"
Looking for some advice on a sql report. I need to summarize data in weekly time "buckets". The week is defined as Sun thru Sat. The report rundate and anthing prior should be week 0, with the future weeks numbered 1, 2, 3, etc. At some point there may be a requirement to group all dates after a future date into one bucket (ie. "9+ weeks"). Any suggestions on how to accomplish numbering the weeks? Thanks in advance. Hello, > Any suggestions on how to accomplish > numbering the weeks? Are you looking for http://msdn.microsoft.com/en-us/libra...

Charting/ Graph question
Hi all I'd like to visually display a table that contains the following table structure StaffName Software 1 Skill Level Software 2 Skill Level (10 software titles >) (around 50-60 people) What i'd like to is output a simple visual output that shows me how many people are at a particular level for the each software (but all on one chart). I imagined that it may be nice to see blobs based on the size of the number of staff at a particular skill level for the specific software. However i am not sure if this is the right way to represent this data. I've created a se...

Chart in Chart
Hi I currently using a 3 line chart, which is controlled by a scroll bar What I need is to have a smaller chart, but magnified of the visabl data for a period of days within the chart timeline. All I need to kno is how to add a addional line chart in and excisting chart. Hope you can assist Thie -- Thie ----------------------------------------------------------------------- Thiem's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=2747 View this thread: http://www.excelforum.com/showthread.php?threadid=49068 Hi, You can embed charts within a chartsheet but y...

What in Office 2004 is worth the upgrade price from Office v.X?
Don't get me wrong... I like my Office v.X and I certainly appreciate the fact that MS has the MacBU and is supporting MS Office products on OS X. BUT, I have read the list of new features for Office 2004 and I don't see anything compelling... The sort of thing that might have attracted my interest would be VBA compatibility with the WindowsXP versions of the Office suite... And the same sort of XML support as is offered on the XP side. But my understanding is that neither is part of the upgrade. I presume a bunch of folks out there *are* upgrading... What are the features you think...

How do I create a chart....
I would like to create a chart that counts the exact number of a specific name compared to other names. The names are in the same column but each cell may contains a differnt name and I would like to count how many times each name appears in the column and then compare them in a graph. try selecting the column (A)? <data><Filter><advanced filter> select unique values select a cell for the data to start (C1) hit enter inD1 enter =countif(A:A,C1) hit enter and copy down to the end of the C Column. "awright" wrote: > I would like to create a chart that counts ...

Date Problem #2
When I type 31/11/03 in a cell it will not follow the same format as the rest of the dates I have typed in. Can anyone please tell me why? I am using Excel from Office 2000 on XP Home Operating System. If that is referring to the 31st of November, unless there is a new leap year for November, Excel would be confused. -- Don Guillett SalesAid Software donaldb@281.com "Gary Pickett" <anonymous@discussions.microsoft.com> wrote in message news:A29ECE7C-4333-4D8D-818F-EF29CD835845@microsoft.com... > When I type 31/11/03 in a cell it will not follow the same format as the rest ...

charts: 1. link to a cell in chart titles, 2. custom chart template
hello, 1. how can i make a link to a cell in chart title, category axis & value axis? i'd like to know how to make a title like eg below: 'Average revenues [=B2], [=B3]' <- in line below (smaller font size than in line above) 2. how can i make a my own chart (custom type) by making a own template (how to make a template, and how to implement it to excel custom types charts) i am interested in making types similar denkin diagram (similar to radar type) or leontief branch flow matrix (similar to x-y plot with columns and rows with second x axis and second y axis) is there a...

Chart items moving around
Hi everybody! I have posted this before but I never got any replies so I did some testing myself. I I want to share what I have found out with you and it would be great to hear if someone else recognizes this. Background: I have a number of embedded charts on a scorecard sheet that gets updated from several sources. I run this scorecard for different business units, take pictures of the scorecards and put in another Excel file that I later make a PDF of. Problem: After running this a few times, I find that my chart legends have moved around a bit and that some plot areas have been resi...

Simple State Diagram flow chart in Visio?
I am trying to make a very simple State Chart Diagram in Visio. I'm not sure if I should just use the basic flow chart or not, as I'm not familar with UML. I simply want to describe a software program that will move two one of four "states" based on some conditions, then loop back around. I am not opposed to just making a flow chart but was hoping to make it look a little more "professional" using a State Diagram. The examples seem rather complicated, I don't want to have to define variables and all that using UML, I just want to show the four "states...

Filter in between dates
Hi Everyone, Using Excel 2003. I have a list of patients who were on a particular therapy and in a certain unit. Many where on the therapy in other units before getting transferred or on the therapy after they left. I need to find the patients who started on a therapy after they arrived in a unit and who were off the therapy before they left the unit. My Date units show me Date and Time in the same field. They are named.. PtLocStDtTm PtLocEndDtTm PtThpyStDtTm PtThpyEndDtTm Thanks, Linda If desired, send your file to my address below. I will only look if: 1. You se...

Combination of stock chart and line chart
Dose anyone know how to plot a stock chart and a line chart together in combination ? I tried but can't seem to do it, is it possible in Excel ? One way is stock chart with open, high, low and close plus volume but I need to plot 2 other lines. Thanks, Hiromichi Hiromichi - I have written an explanation on this web page: http://peltiertech.com/Excel/Charts/StockChartPlus.html - Jon ------- Jon Peltier, Microsoft Excel MVP Peltier Technical Services Tutorials and Custom Solutions http://PeltierTech.com/ _______ hwatari wrote: > Dose anyone know how to plot a stock chart and a...

How To Chart A Formula in Excel 2007
I'm looking to plot multiple formulas on a single chart, and came across a thread from 8/12/2005 for earlier versions of Excel for a single function, which causes errors when recreated in 2007. Error is A Formula in this worksheet contains one or more invalid references Verify that your formulas contain a valid path, workbook, range name, and cell reference I presume its due to changes in 2007, and possibly the Evaluate formula as I cant find it listed in 2007. Is there a new technique that avoids the error? Thanks Very Much for any help. Kris In column A we have...

Can't change pt. size in a 3-D Format Chart
For some reason, I am not able to change the width and height point sizes when I am trying to apply 3-D formatting to a chart in Excel. I try to type the numbers in, but the pt size just defaults back to 0. My husband thought it may have been a stuck number key somewhere, so I turned the computer off and rebooted. No change. Any ideas? Thanks! Point sizes of the whole chart? What's wrong with a good old 2D chart? You won't have this kind of problem, and you won't distort the data you're plotting, either. - Jon ------- Jon Peltier Peltier Technical Services,...

create chart from external application
Hi, I would like to know if this is possible.... I have an application that contains an hierarchical chart. I would like to export this data into a format that Visio can *understand*, and then import it into Visio and have it display in a hierarchical manner. Does any body know if this is possible to do. .....or, if there is another way of getting my data into Visio, can you please let me know. Thanks. Here is an article that describes how to automate the org chart wizard, and how to format your data: http://office.microsoft.com/assistance/2002/articles/spotlight5_July00.aspx Hope ...

print a chart over multiple pages
I am trying to stretch a chart over multiple pages, but i just can't get it to work. I have tried all i can think including attempting to print areas individually. Any ideas? i'm using excel 2003. Thanks Hi, If the chart is on a chart page, this will not work. If the chart is embedded on a sheet, and you select the chart, it will not work. What you need to do is embed the chart and then select the range "behind - under" the chart, then you can use all of the print options, thereby printing one chart across multiple pages. Cheers, Shane "OEB1527" <O...

Embed Chart
Is it possible to link a chart into my current worksheet like an embedded chart (or something)? Thanx. Brian - I'm not sure what you're asking. If you copy a chart from one workbook (or worksheet) and paste it into another, it will retain its links to the original source of its data. You can change its source data (to its new parent worksheet) using Source Data from the Chart menu. - Jon ------- Jon Peltier, Microsoft Excel MVP http://www.geocities.com/jonpeltier/Excel/index.html _______ briank wrote: > Is it possible to link a chart into my current worksheet > like an...

time functions
Hello, I am relatively new to Excel and I am trying to do a timesheet tha keeps track of hours I have worked. The problem is that the spreadshee includes times but also total hours. The two aren't really compatibl when doing calculations. Our normal working hours per month are 14 hours. I put in what time I start and what time I finish and i calculates how many hours I have worked (but it is still in tim format-- e.g. 9-17:00 ends up being 8 hours on my time sheet but i shows up as 8:00). When I do an autosum of all the total times I hav worked during the month, the figure is wrong due...

Names on a Bubble Chart
Hi There, I am wondering on how I can put the "names" on my bubbles...? I've the following data where I would like to make a bubble chart with ... The bubble chart in itself works fine, I just do not manage to get the corresponding name (Product1, 2,...) on each bubble: NS AGP Growth Product1 9,052,494 22 (31) Product2 1,574,341 32 (25) Product3 1,759,511 3 (45) Product4 1,539,132 13 (69) Any thoughts? Jen ...

A Chart in a Chart ?
Is it possible to create a chart within another chart? If not - Is it possible to view a chart within another chart? Jim -- jamesasmithsr ------------------------------------------------------------------------ jamesasmithsr's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=24101 View this thread: http://www.excelforum.com/showthread.php?threadid=377093 you can save a chart inside a second chart. Make the first chart and have it on its own sheet make the second chart and set its location as an object in the first chart sheet "jamesasmithsr" wrot...

Office apps won't open, report Office in use by another use
Version: 2004 Operating System: Mac OS X 10.4 (Tiger) Processor: Intel A few days ago, our Office applications started showing the report that "An Office program is being used by "user." your installation exceeds the number of installations permitted by thelicense agreement. Click More Information to learn about Microsoft Office licensing." But OFFICE ISN'T BEING USED BY ANYONE. All computers have been restarted to no avail. HELP! <sakas@officeformac.com> wrote: > A few days ago, our Office applications started showing the report that > "An Office p...

Excel Chart Source Data
Is it possible to update Excel Chart Source Data for Multiple Chart where the ranges are exactly the same? We have a large workbook containing 25 worksheets with charts that ar linked to another Master Workbook. The charts display data for a rolling 12 month timescale and so th source data needs to be manually updated each month to reflect th current rolling 12 month timescale e.g May 2003 to April 2004 cell range A1:Z1 would need to be updated t reflect June 2003 to May 2004 to B1:AA1 There are 100 charts so manually updating the Source Data is tim consuming-as the cell references are the ...