Re: [taskjuggler-users] chart explanation

142 views
Skip to first unread message

John Hendy

unread,
Mar 31, 2013, 6:58:30 PM3/31/13
to taskjugg...@googlegroups.com
On Thu, Mar 28, 2013 at 1:48 AM, <inp...@gmail.com> wrote:
> Readers,
>
> This may be a repost.
>
> Have just started to use taskjuggler, after mention in planner mailing list
> ;)
>
> The help manual does not describe the chart attribute
> (http://www.taskjuggler.org/tj3/manual/Tutorial.html#Visualizing_the_Project)

It's a columnid attribute, to be passed to the report so tj3 knows
what to include:
- http://www.taskjuggler.org/tj3/manual/index.html


> How to introduce a line break in a report column such as 'note'?

Not sure how to do this, but you might look at this example reports.tji file:
- https://code.google.com/p/django-taskjuggler3/source/browse/trunk/mysite/example/reports.tji?r=426

Note the definition of a tooltip:

#+begin_example
macro TaskTip [
tooltip istask() -8<-
'''Start: ''' <-query attribute='start'->

'''End: ''' <-query attribute='end'->

'''Complete:''' <-query attribute='complete'->
----
'''Resources:''' <-query attribute='resources'->
----
'''Precursors: ''' <-query attribute='precursors'->
----
'''Followers: ''' <-query attribute='followers'->
->8-
]
#+end_example

You can add one to query for the note attribute if you'd like:

#+begin_example

[deleted from above]...

<-query attribute='followers'->
----
'''Notes: '''

<-query attribute='note'->
->8-
]
#+end_example

Then, for your task, just add a note attribute:

#+begin_example

task id "name" {
attr_name value
attr_name value
note "This is a note"
}

#+end_exmaple

On compilation, clicking the task graphic (diamond, task length bar,
etc.) will reveal a popup with the note included. To do it another way
will require some tj3-foo that I don't have. I'm sure there's some way
to parse the note attribute into something like the task header, but
wouldn't know...


> How to introduce a css scroll bar to the Gantt chart section of the report
> table?

Mine has a scroll bar by default (if the width is too large). Does
yours not do this, or are you just looking to pass css customization
to the output?

> How to specify the area of the Gantt chart as a percentage of the total
> table width?

Not sure on this. I tried fiddling around with both 'width' and 'width
(column)':
- http://www.taskjuggler.org/tj3/manual/width.html
- http://www.taskjuggler.org/tj3/manual/width.column.html

Three mailing list posts refer to setting the column width:
- https://groups.google.com/forum/#!msg/taskjuggler-users/x61Gs-xToxk/5ER2NGi4trsJ
- https://groups.google.com/forum/?fromgroups=#!topic/taskjuggler-users/rbVqrOLnRuk
- https://groups.google.com/d/msg/taskjuggler-users/G7F_639V1P8/Ep9-8VZLfv8J

I tried both and have not been successful... i.e., both:

#+begin_example

taskreport overview "" {
width 1200
header -8<-
->8-

columns bsi { title 'WBS' },
name, start, end, chart { ${TaskTip} width 1200 }
}
#+end_example

Neither seems to be working for me.


> How to solve the absence of the taskjugglerui
> (http://lists.opensuse.org/opensuse/2013-03/msg01056.html)

What do you mean by "solve." If you mean "does it have one," then I'll
respond the same way I responded a year ago to a similar question:
- https://groups.google.com/forum/?fromgroups=#!topic/taskjuggler-users/02-PtHI_U1U

If you mean "solve" as in create... I'd let Chris tell you how you can
contribute code :)


Best regards,
John


> --
> taskjuggler340
>
> --
> You received this message because you are subscribed to the "TaskJuggler
> Users" group.
> To post to this group, send email to taskjugg...@googlegroups.com
> To unsubscribe from this group, send email to
> taskjuggler-us...@googlegroups.com
> For more information about TaskJuggler visit http://www.taskjuggler.org
> ---
> You received this message because you are subscribed to the Google Groups
> "TaskJuggler Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to taskjuggler-us...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

John Hendy

unread,
Mar 31, 2013, 7:27:30 PM3/31/13
to taskjugg...@googlegroups.com
On Sun, Mar 31, 2013 at 5:58 PM, John Hendy <jw.h...@gmail.com> wrote:
> On Thu, Mar 28, 2013 at 1:48 AM, <inp...@gmail.com> wrote:
>> Readers,
>>

[deleted]

>> How to specify the area of the Gantt chart as a percentage of the total
>> table width?
>
> Not sure on this. I tried fiddling around with both 'width' and 'width
> (column)':
> - http://www.taskjuggler.org/tj3/manual/width.html
> - http://www.taskjuggler.org/tj3/manual/width.column.html
>
> Three mailing list posts refer to setting the column width:
> - https://groups.google.com/forum/#!msg/taskjuggler-users/x61Gs-xToxk/5ER2NGi4trsJ
> - https://groups.google.com/forum/?fromgroups=#!topic/taskjuggler-users/rbVqrOLnRuk
> - https://groups.google.com/d/msg/taskjuggler-users/G7F_639V1P8/Ep9-8VZLfv8J
>
> I tried both and have not been successful... i.e., both:

For those following this and who may stumble on the width issue, I
have not been able to use it to set chart width. Posted an issue on
the Github site with reproducible example description:
- https://github.com/taskjuggler/TaskJuggler/issues/107

Best regards,
John

Bill Mills-Curran

unread,
Mar 31, 2013, 7:44:32 PM3/31/13
to taskjugg...@googlegroups.com
On Sun, Mar 31, 2013 at 06:27:30PM -0500, John Hendy wrote:
> Date: Sun, 31 Mar 2013 18:27:30 -0500
> From: John Hendy <jw.h...@gmail.com>
> To: taskjugg...@googlegroups.com
> Subject: Re: [taskjuggler-users] chart explanation
> Reply-To: taskjugg...@googlegroups.com
> Precedence: list
I was able to control chart width with a columns field:

chart {width 1500}

Is this what you're looking for?

Bill

John Hendy

unread,
Mar 31, 2013, 7:50:08 PM3/31/13
to taskjugg...@googlegroups.com
Yes -- see the bug report. That is not working for me using the
reproducible example of the tutorial.tjp file from the TaskJuggler
tutorial. Feel free to post a link to your .tjp file (and applicable
.tji file) if you have a reproducible example I can try. From my
testing, setting via columnid attribute is not working.

John

Bill Mills-Curran

unread,
Mar 31, 2013, 8:13:06 PM3/31/13
to taskjugg...@googlegroups.com
On Sun, Mar 31, 2013 at 06:50:08PM -0500, John Hendy wrote:
> Date: Sun, 31 Mar 2013 18:50:08 -0500
Here's my report generator:

taskreport jambo_ordered "" {
headline "Jambo 2013 (ordered)"
caption 'Duration and effort are in days.'
sorttasks plan.start.up
columns id, name, start, end, responsible, effort, duration, chart
{width 1500}
hideresource 0
hidetask ~(ischildof(jambo) & isleaf())

}

textreport "Jambo" {
formats html
center -8<-
<[report id="jambo"]>
This report lists the individual tasks in chronological start order.
<[report id="jambo_ordered"]>
->8-
}

John Hendy

unread,
Mar 31, 2013, 8:30:03 PM3/31/13
to taskjugg...@googlegroups.com
On Sun, Mar 31, 2013 at 7:13 PM, Bill Mills-Curran
I had to modify to make this reproducible:

#+begin_report_def
taskreport overview "" {
headline "Test report"
columns id, name, start, end, responsible, effort, duration, chart
{width 1900}
hideresource 0

}

textreport "Overview" {
formats html
center -8<-
<[report id="overview"]>
->8-
}
#+end_report

Let me know if this works on your setup.

I have a 1400x900 screen on my laptop and the chart is taking up
hardly anything. I'd say ~3in. I attached a screenshot of the Chrome
right click -> Inspect element output for the first table row, last
column. It shows the width at 280px.

Side note: I did notice that Ruby just upgraded to 2.0.0 on Arch Linux
last week... should the ruby version affect these types of things? I
can try to downgrade... but I f-ing hate tinkering with Ruby when it
comes to installing particular versions of things. I un-installed TJ
and blasted away my 1.9.1 gem directory since the various gem
dependencies were in there, but the system ruby upgrade change the gem
PATH variable to look in the 2.0.0 gem folder... I just wiped all
ruby-related stuff and reinstalled and everything is fine.

Wouldn't even have messed with this if it weren't for the OPs
question, which seemed to have a definitive fix per previous mailing
list threads.


Thanks for the assistance/troubleshooting!
John
2013-03-31_192614.png

inp...@gmail.com

unread,
Apr 16, 2013, 9:36:31 AM4/16/13
to taskjugg...@googlegroups.com
Read the bug and tried:

...columns bsi, name, start, end, resources {listitem "<-query attribute='name'->"}, cost, note, chart {period 2013-01-01 +0.5y}
        formats html...

The result is that the chart area can be changed by zoom, but not the _size_ of  chart relative to the table.

Is it possible to use the css 'resize' function for 'div' elements, so that the user can resize the relative area of the chart by mouse drag?
Reply all
Reply to author
Forward
0 new messages