Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default X-axis values in xlLine chart problem

Hi,

I have the following code:
$Range = $Sheet-Range( "A3:A93" );
if ($Range)
{
$Chart-SeriesCollection( 1 )-{XValues} = $Range-{Value};
}


it doesn't set the X-axis values as I would expect to "-60, -59, ....
39, 40" instead it displays values "1, 4, 7, .....91".


my range contains values "-60" to "40".


it works fine if the range contain positive values .


any help would be greatly appreciated.


-Gary

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default X-axis values in xlLine chart problem

Gary, do you need to assign the Xvalues property directly? Unless there is a
specific preclusion, I find it easier to assign the formula property instead
(i.e. SeriesCollection(1).formula = "=SERIES(,Sheet1!$B$A:$A$93,
Sheet1!$D$3:$D$93,1)", where Sheet1!$D$3:$D$93 is the y-values range).

Regards,
Bill


"Gary" wrote:

Hi,

I have the following code:
$Range = $Sheet-Range( "A3:A93" );
if ($Range)
{
$Chart-SeriesCollection( 1 )-{XValues} = $Range-{Value};
}


it doesn't set the X-axis values as I would expect to "-60, -59, ....
39, 40" instead it displays values "1, 4, 7, .....91".


my range contains values "-60" to "40".


it works fine if the range contain positive values .


any help would be greatly appreciated.


-Gary


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default X-axis values in xlLine chart problem

Bill,

Thanks a lot, I am doing this in PERL and I am trying to use the
following assignment and it doesn't seem to work.

# XValues is X-axis label values
$Chart-SeriesCollection( 1 )-Formula =
"=SERIES(,Data!A$3:A$93,,1)";

Where Data is the name of my Sheet and I can't use $A in PERL as it
complians so I am using just "A".

Any ideas ?

Thanks,
Girish

Bill Pfister wrote:
Gary, do you need to assign the Xvalues property directly? Unless there is a
specific preclusion, I find it easier to assign the formula property instead
(i.e. SeriesCollection(1).formula = "=SERIES(,Sheet1!$B$A:$A$93,
Sheet1!$D$3:$D$93,1)", where Sheet1!$D$3:$D$93 is the y-values range).

Regards,
Bill


"Gary" wrote:

Hi,

I have the following code:
$Range = $Sheet-Range( "A3:A93" );
if ($Range)
{
$Chart-SeriesCollection( 1 )-{XValues} = $Range-{Value};
}


it doesn't set the X-axis values as I would expect to "-60, -59, ....
39, 40" instead it displays values "1, 4, 7, .....91".


my range contains values "-60" to "40".


it works fine if the range contain positive values .


any help would be greatly appreciated.


-Gary



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default X-axis values in xlLine chart problem

Bill,

Thanks a lot, I am doing this in PERL and I am trying to use the
following assignment and it doesn't seem to work.


# XValues is X-axis label values
$Chart-SeriesCollection( 1 )-Formula =
"=SERIES(,Data!A$3:A$93,,1)";


Where Data is the name of my Sheet and I can't use $A in PERL as it
complians so I am using just "A".

Any ideas ?


Thanks,
Gary

Bill Pfister wrote:
Gary, do you need to assign the Xvalues property directly? Unless there is a
specific preclusion, I find it easier to assign the formula property instead
(i.e. SeriesCollection(1).formula = "=SERIES(,Sheet1!$B$A:$A$93,
Sheet1!$D$3:$D$93,1)", where Sheet1!$D$3:$D$93 is the y-values range).

Regards,
Bill


"Gary" wrote:

Hi,

I have the following code:
$Range = $Sheet-Range( "A3:A93" );
if ($Range)
{
$Chart-SeriesCollection( 1 )-{XValues} = $Range-{Value};
}


it doesn't set the X-axis values as I would expect to "-60, -59, ....
39, 40" instead it displays values "1, 4, 7, .....91".


my range contains values "-60" to "40".


it works fine if the range contain positive values .


any help would be greatly appreciated.


-Gary



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
problem in chart x axis while values are in merged cell narnimar Excel Discussion (Misc queries) 2 October 12th 08 09:33 AM
X-axis values in xlLine chart problem Gary Charts and Charting in Excel 0 September 9th 06 01:45 AM
Create excel chart from LotusScript, change xlLine line weight Roy Rumaner Excel Programming 2 March 2nd 06 03:33 AM
Chart problem: values in column A don't show as labels on x-axis digicat Excel Discussion (Misc queries) 1 January 9th 06 07:08 PM
Chart problem: values in column A doen't show on x-axis digicat Excel Discussion (Misc queries) 0 January 9th 06 06:07 PM


All times are GMT +1. The time now is 02:13 AM.

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

About Us

"It's about Microsoft Excel"