PC Review


Reply
Thread Tools Rate Thread

Category axis label problem at column chart

 
 
Marko Pinteric
Guest
Posts: n/a
 
      24th Apr 2006

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.
 
Reply With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      24th Apr 2006
Hi,

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

Cheers
Andy

Marko Pinteric wrote:
>
> 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.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
Reply With Quote
 
Marko Pinteric
Guest
Posts: n/a
 
      24th Apr 2006

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.

Andy Pope wrote:
> Hi,
>
> Easiest thing is to include a space in the first cell.
> (" "; "13:00"; ""; "14:00")
>
> Cheers
> Andy
>
> Marko Pinteric wrote:
>
>>
>> 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.

>
>

 
Reply With Quote
 
Andy Pope
Guest
Posts: n/a
 
      24th Apr 2006
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

Marko Pinteric wrote:
>
> 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.
>
> Andy Pope wrote:
>
>> Hi,
>>
>> Easiest thing is to include a space in the first cell.
>> (" "; "13:00"; ""; "14:00")
>>
>> Cheers
>> Andy
>>
>> Marko Pinteric wrote:
>>
>>>
>>> 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.

>>
>>
>>


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
Reply With Quote
 
Marko Pinteric
Guest
Posts: n/a
 
      24th Apr 2006


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.

Andy Pope wrote:
> Hi,
>
> Easiest thing is to include a space in the first cell.
> (" "; "13:00"; ""; "14:00")
>
> Cheers
> Andy
>
> Marko Pinteric wrote:
>
>>
>> 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.

>
>

 
Reply With Quote
 
Marko Pinteric
Guest
Posts: n/a
 
      24th Apr 2006

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

Andy Pope wrote:
> 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
>
> Marko Pinteric wrote:
>
>>
>> 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.
>>
>> Andy Pope wrote:
>>
>>> Hi,
>>>
>>> Easiest thing is to include a space in the first cell.
>>> (" "; "13:00"; ""; "14:00")
>>>
>>> Cheers
>>> Andy
>>>
>>> Marko Pinteric wrote:
>>>
>>>>
>>>> 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.
>>>
>>>
>>>
>>>

>

 
Reply With Quote
 
Andy Pope
Guest
Posts: n/a
 
      24th Apr 2006
Double click the axis and on the scale tab check the 'Number of
Categories between tick marks' value is 1.

Cheers
Andy

Marko Pinteric wrote:
>
> 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
>
> Andy Pope wrote:
>
>> 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
>>
>> Marko Pinteric wrote:
>>
>>>
>>> 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.
>>>
>>> Andy Pope wrote:
>>>
>>>> Hi,
>>>>
>>>> Easiest thing is to include a space in the first cell.
>>>> (" "; "13:00"; ""; "14:00")
>>>>
>>>> Cheers
>>>> Andy
>>>>
>>>> Marko Pinteric wrote:
>>>>
>>>>>
>>>>> 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.
>>>>
>>>>
>>>>
>>>>
>>>>

>>


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
Reply With Quote
 
Marko Pinteric
Guest
Posts: n/a
 
      24th Apr 2006

I have that...

Marko

Andy Pope wrote:
> Double click the axis and on the scale tab check the 'Number of
> Categories between tick marks' value is 1.
>
> Cheers
> Andy
>
> Marko Pinteric wrote:
>
>>
>> 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
>>
>> Andy Pope wrote:
>>
>>> 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
>>>
>>> Marko Pinteric wrote:
>>>
>>>>
>>>> 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.
>>>>
>>>> Andy Pope wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Easiest thing is to include a space in the first cell.
>>>>> (" "; "13:00"; ""; "14:00")
>>>>>
>>>>> Cheers
>>>>> Andy
>>>>>
>>>>> Marko Pinteric wrote:
>>>>>
>>>>>>
>>>>>> 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.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>

>

 
Reply With Quote
 
Marko Pinteric
Guest
Posts: n/a
 
      24th Apr 2006

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.


Andy Pope wrote:
> Double click the axis and on the scale tab check the 'Number of
> Categories between tick marks' value is 1.
>
> Cheers
> Andy
>
> Marko Pinteric wrote:
>
>>
>> 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
>>
>> Andy Pope wrote:
>>
>>> 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
>>>
>>> Marko Pinteric wrote:
>>>
>>>>
>>>> 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.
>>>>
>>>> Andy Pope wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Easiest thing is to include a space in the first cell.
>>>>> (" "; "13:00"; ""; "14:00")
>>>>>
>>>>> Cheers
>>>>> Andy
>>>>>
>>>>> Marko Pinteric wrote:
>>>>>
>>>>>>
>>>>>> 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.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>

>

 
Reply With Quote
 
Andy Pope
Guest
Posts: n/a
 
      24th Apr 2006
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.

Marko Pinteric wrote:
>
> I have that...
>
> Marko
>
> Andy Pope wrote:
>
>> Double click the axis and on the scale tab check the 'Number of
>> Categories between tick marks' value is 1.
>>
>> Cheers
>> Andy
>>
>> Marko Pinteric wrote:
>>
>>>
>>> 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
>>>
>>> Andy Pope wrote:
>>>
>>>> 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
>>>>
>>>> Marko Pinteric wrote:
>>>>
>>>>>
>>>>> 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.
>>>>>
>>>>> Andy Pope wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Easiest thing is to include a space in the first cell.
>>>>>> (" "; "13:00"; ""; "14:00")
>>>>>>
>>>>>> Cheers
>>>>>> Andy
>>>>>>
>>>>>> Marko Pinteric wrote:
>>>>>>
>>>>>>>
>>>>>>> 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.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>

>>


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change y-axis to category in a column chart Ben Hill Microsoft Excel Charting 3 11th Jul 2007 01:45 AM
Column chart - category axis - make to start with the second label Marko Pinteric Microsoft Excel Misc 3 10th Apr 2006 09:31 AM
Column chart - category axis - make to start with the second label Marko Pinteric Microsoft Excel Charting 3 10th Apr 2006 09:31 AM
label the category axis from 0 to 30, step 5 in an excel chart =?Utf-8?B?am9obm55IGhhbmxvbg==?= Microsoft Excel Charting 2 29th Jan 2006 12:12 AM
Add in label to the category axis on Chart Chen Yan Microsoft Excel Programming 0 16th Oct 2003 08:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:15 PM.