Category axis label problem at column chart

M

Marko Pinteric

Dear experts!

I have a column chart. Category axis labels are either time ("hh:mm")
or empty ("") cells. If first value in the label range is time,
e.g. ("13:00"; ""; "14:00"; ""), everything is fine, in the opposite
case, e.g. (""; "13:00"; ""; "14:00"), labels are not displayed. It
seems that the chart calculate required space for labels according to
the first value in the label range.

Is there any way to solve this problem, so labels will be displayed
regardless of the fact if first value in label range is empty or not?

Thanks, Marko.
 
A

Andy Pope

Hi,

Easiest thing is to include a space in the first cell.
(" "; "13:00"; ""; "14:00")

Cheers
Andy
 
M

Marko Pinteric

I was testing that. More spaces, more numbers are displayed. For the
whole time number ("hh:mm") it requires about nine spaces. Problem is
that depending on other graph specifics it requres less or more spaces
(from 8 to 10). Is there any more stable solution?

Marko.
 
A

Andy Pope

I'm not sure I follow.

For me a single space just helps the chart wizard identify what it
thinks are labels, series data and series names. Adding more spaces has
no other effect.

How many category labels do you have?

Cheers
Andy
 
M

Marko Pinteric

I was trying that already. More spaces, more of the digits of the time
are displayed. It takes around nine spaces to display the whole time.
The number of spaces depends on chart's properties.

Isn't there a more stable and elegant solution?

Marko.
 
M

Marko Pinteric

About 100 labels (every second time labels (hh.mm), other are emtpy labels).

One space is not enough - only one digit is displayed (first digit of
hour). More spaces - more digits.

Marko
 
A

Andy Pope

Double click the axis and on the scale tab check the 'Number of
Categories between tick marks' value is 1.

Cheers
Andy
 
M

Marko Pinteric

I have that...

Marko

Andy said:
Double click the axis and on the scale tab check the 'Number of
Categories between tick marks' value is 1.

Cheers
Andy
 
M

Marko Pinteric

F column looks like:

12:30, 13:00, 13:30, 14:00, 14:30, ..

G column has formula:

=IF(MINUTE(F1)=0;F1;"")

so G column looks like

"", 13:00, "", 14:00, "", ...

G column is also range for category labels.

In the example above, nothing is displayed on category axis.


If I change formula to

=IF(MINUTE(F1)=0;F1;" ")

only first digit is displayed

" ", "1", " ", "2", " ", ...


Marko.
 
A

Andy Pope

Then I'm not sure what is causing the problem.
If you want you can email me (off newsgroup) with the file and I will
have a look see.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top