Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to include graph in side the report?

SOLVED
Go to solution
Highlighted
knopporn
Occasional Contributor

Is it possible to include graph in side the report?

I am currently finding the best practice for including graph inside the report.

4 REPLIES
penoles
Regular Collector

Re: Is it possible to include graph in side the report?

what kind of graph, dynamic generated or static image?

whatever it is, in my opinion it is absolutely possible.

static image you can put just under itg folder where ppm put the image.

knopporn
Occasional Contributor

Re: Is it possible to include graph in side the report?

I want to include the graph as shown on portlet inside the report.

penoles
Regular Collector
Solution

Re: Is it possible to include graph in side the report?

In theory, you can do it, but it may take a lot of coding effort.

Since there's no published interface vailable in PPM for generating the image as shown on portlet, the alternative is using 3rd party chart  library like JFreeChart

,Jensoft SW2D Google Chart

philipwood
Regular Collector

Re: Is it possible to include graph in side the report?

Hi,

 

It is definitely is doable. We've produced some reports like this at a few of our clients.

 

We've used JFreeChart to generate the images, which are then referenced in the main JSP report output.

 

The biggest gotcha - in terms of the PPM specific coding - is that the web application that serves files from the reports subdirectory is configured only to serve html files.

 

Our approach is to generate the charts as PNG files which are then stored, and to serve these stored files using a separate JSP or servlet.

 

Regarding coding effort:

Setting up the graphing sub-system or infrastructure is a lot of effort the first time you do it, but that effort can be reused afterwards (this includes getting a third-party library installed and working and implementing the mechanism to serve the PNG files).

Implementing an individual chart is more effort than developing just a query and the html to display it, but for a simple chart this is quite manageable.

That said, fiddling with the exact look and feel can be a lot of effort though.

 

A note:

Since the output is an HTML file containing external references, if a user wants to save and email a file, they need to take care that the graphs are included. On IE we recommend that they save the file as the type:

Web Archive, single file (*.mht).

 

Hope this helps.

 

Regards

 

Philip Wood

//Add this to "OnDomLoad" event