#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default VB Chart

You need two series, one with dates in C2:C3, the other with dates in C4:C5.

It won't work to stack the lines, though, if the dates are different. In a
line chart, all series assume the X values of the first series.

To split a range into multiple series, you could try these technique
(adjusted to match your data layout):

http://peltiertech.com/WordPress/200...-chart-series/
http://peltiertech.com/WordPress/200...s-without-vba/

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


wrote in message
...
I have a sheet with the following type of data:

Type Value Date
A $100 01/08
A $200 02/08
B $50 06/07
B $22 05/08

I'm creating a chart and setting the x-axis as Date, the y-axis as
Value and need 2 stacked lines each representing a type.

I set the X as Date

ActiveChart.SeriesCollection(1).XValues = WorkWk.Range("C2", EndStr)

with WorkWk = current worksheet and EndStr being the end of the
column, so C5 in the example above and that resets the y-axis to
Column B. So how would I make the 2 types each its own line on the
graph?

Thanks,
Ilona



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
Excel 2003 is missing Built-In Custom Chart Types in Chart Wizard Julius Charts and Charting in Excel 2 March 6th 09 04:43 PM
Excel 2003 is missing Built-In Custom Chart Types in Chart Wizard Julius Setting up and Configuration of Excel 1 March 6th 09 01:57 AM
chart from pivot data does not update x-axis bar chart values - bug jason gers Excel Discussion (Misc queries) 0 April 3rd 07 06:34 PM
Double-stacked Bar Chart WITH a Secondary Y Axis Line chart? lpenndorf Charts and Charting in Excel 1 February 7th 07 04:32 PM
Cannot Activate Chart Area in Chart. Chart Object Failed [email protected] Excel Programming 2 August 8th 06 02:38 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"