Is there a way to word wrap the project titles in the Gantt chart? I suppose it would go somewhere in the following under modules/project/gantt.php: if (!is_array($projects) || 0 == count($projects)) { $d = new w2p_Utilities_Date(); $columnValues = array('project_name' => $AppUI->_('No projects found'), 'start_date' => $d->getDate(), 'end_date' => $d->getDate(), 'actual_end' => ''); $gantt->addBar($columnValues, ' ' , 0.6, 'red');\n} else { foreach ($projects as $p) { $pname = $p['project_name']; $pname = (mb_strlen($pname) > 85) ? (mb_substr($pname, 0, 25) . '...') : $pname;

asked 11 Nov '15, 15:08

gwildgoose's gravatar image

gwildgoose
107922
accept rate: 0%

edited 11 Nov '15, 15:09


So according to jpgraph, the line of code is $txt->SetWordWrap(45) however, I believe this is normally defined in jgraph.text.inc.php according to jpgraph. I would have thought I could insert into the module/project/gantt.php file, but I am not sure if I am executing it right, or if I can run this command from this file. Either way, it doesn't work when I insert within the table definition. any help would be appreciated.
permanent link

answered 12 Nov '15, 09:41

gwildgoose's gravatar image

gwildgoose
107922
accept rate: 0%

edited 12 Nov '15, 09:42

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×8
×1

question asked: 11 Nov '15, 15:08

question was seen: 121 times

last updated: 12 Nov '15, 09:42

powered by Bitnami OSQA