Gantt bar text overlapping with Bar styles

T

ttl

I would like to display a different field on the right side of the task bar
for each defined bar style. But when I define a field in the same position on
two bar styles the fields are rendered on top of each other.

Example:
1. Edit original bar style: Normal. Change Text > Right to "% Complete".
2. Add a new bar style: Normal;Finished. Change bar color to green. Change
Text > Right="Actual work".
3. Add two tasks, and set one to 100% complete. The completed tasks shows
correctly in green color but the two text fields are shown on top of each
other.

I am using Project Professional 2007 SP1. If this is a bug that has not been
reported can someone please let me know how to report it?
 
J

Jack Dahlgren

If you are drawing two bars in the same place, then the two bar texts will
overlap. One way to avoid it is to not draw duplicate bars. For the default
bar (the blue one,) set it to Normal, Not Finished, then set your barstyle
for Finished one. Sinece only one of the bars will be drawn (either the
finished or not finished one) only one set of text will display.

-Jack Dahlgren
 
T

ttl

Thanks Jack, nice trick and works great in my case.

Looks like Project really draws the same task bar again for each bar style
that applies to it. Not terribly efficient - and at least for me a bit
counterintuitive. And that's probably why you need to create the more
specific styles in the list below the more general ones, otherwise the bar
gets redrawn by the last style that applies.

T
 
J

Jack Dahlgren

ALL the bar styles are drawn which apply to a certain task and they are drawn
in the order that they are listed (first style at the bottom). In fact this
IS rather efficient and allows a number of creative formatting tricks once
you understand it.

Looks like you have got it under control.

-Jack Dahlgren
 
V

vanita

Hi T

If you want to show two types of bars, while customising in bar styles, put
them in different rows (1-4).

You could have 3 types of bars:
1. Type (Normal, not started), Row 1
2. Type (Normal, in progress), Row 2, Text % complete on Right and colur as
required.
3. Type (Normal, finished), Row 3, Text and colour as required.

Now only one bar would be created for each activity and in the relevant row.
With each type of bar in different row, your texts won't overlap.

I hope it helps.
Vanita
 
J

Jack Dahlgren

Jan,

Maybe it is just the terminology.

In the barstyles list, the first item of the list gets drawn first. The
second writes on top of that, and so on.

Barstyles later in the list can completely cover items earlier in the list.

For this reason I say that the first item in the list is drawn at the bottom
and the last item of the list is drawn on top. Maybe back and front would be
better terms for me to use, but I come from a flat world...

-Jack
 

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