Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
sally
 
Posts: n/a
Default Getting a category x-axis to sort of "right-justify"


I am using a category x-axis and want to create the following effect:

The tick marks and labels should be spaced out such that the last tick
mark is at the right-most x value. That sounds obvious enough at
first, but the number of categories is variable and the user does not
want to see every category marked. He wants to see, for example, 1
tick mark every 10 values.

The first category label appears in the leftmost corner of the chart
but then marking every 10 values going across to the right will
sometimes wind up with the rightmost tick somewhat to the left of the
last value on the right.

I have been handling this programmatically and adjusting the number of
categories between ticks to space it the way he wants, but I was
wondering if anyone had any other ideas by setting the chart options.

Thanks for any help.


--
sally
------------------------------------------------------------------------
sally's Profile: http://www.hightechtalks.com/m789
View this thread: http://www.hightechtalks.com/t2339634

  #2   Report Post  
Posted to microsoft.public.excel.charting
Andy Pope
 
Posts: n/a
Default Getting a category x-axis to sort of "right-justify"

Hi,

Maybe you could adapt the technique described here.
http://www.andypope.info/charts/hiliteaxislabels.htm

The could handle the labels. As for the actual tick marks you could use
another series using cross data marker to mimic the tick mark. You will
need to plot this on the secondary axis, use the secondary xaxis and
un-set the value crosses between categories.

Cheers
Andy

sally wrote:
I am using a category x-axis and want to create the following effect:

The tick marks and labels should be spaced out such that the last tick
mark is at the right-most x value. That sounds obvious enough at
first, but the number of categories is variable and the user does not
want to see every category marked. He wants to see, for example, 1
tick mark every 10 values.

The first category label appears in the leftmost corner of the chart
but then marking every 10 values going across to the right will
sometimes wind up with the rightmost tick somewhat to the left of the
last value on the right.

I have been handling this programmatically and adjusting the number of
categories between ticks to space it the way he wants, but I was
wondering if anyone had any other ideas by setting the chart options.

Thanks for any help.



--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
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
Axis category Svilen Pachedzhiev Charts and Charting in Excel 2 November 7th 05 08:33 AM
Dynamic Bar Chart Category Axis Problem Richard Charts and Charting in Excel 1 September 13th 05 09:51 AM
Category Axis placement rvExcelNewTip Charts and Charting in Excel 3 June 6th 05 05:05 PM
How do I change the category axis number formatting in a Pivot Ch. Cultcab Charts and Charting in Excel 0 April 19th 05 12:26 AM
How do I make the Y axis in an excel chart the category axis? megnadoodle Charts and Charting in Excel 2 March 29th 05 09:27 AM


All times are GMT +1. The time now is 10:10 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"