See the main page for usage, download and installation instructions.
Source#
[{GanttChartPlugin title='Project Plan' xaxislabel='Timeline' yaxislabel='Tasks' imap=true :Name|String, Start|Month, End|Month, Percentage Coding * 'Design', 3-2001, 4-2001, 0.7 * 'Implementation', 4-2001, 6-2001, 0 ** 'First task', 4-2001, 5-2001, 0 ** 'Second task', 5-2001, 6-2001, 0.4 Testing * 'Test plan', 4-2001, 5-2001, 0.0 Coding * 'Test1', 5-2001, 6-2001, 0.1 * 'Test2', 6-2001, 7-2001, 0.3 * 'Test3', 7-2001, 7-2001, 0.8 Testing * 'Test plan', 4-2001, 5-2001, 0.0 * 'Execution', 5-2001, 7-2001, 1.0 }]
If you would like to have start and the end is by date, the following is an example.
[{ GanttChart title='Arfa Project Plan' width='600' height='300' yaxislabel='Phases' :Name|String, Start|Day, End|Day, Percentage Coding * 'Design', 01/06/2006, 04/15/2006, 0.7 * 'Implementation', 01/19/2006, 03/05/2006, 0 Testing * 'Test case planning', 02/10/2006, 03/03/2006, 1.0 Coding * 'Integration testing', 03/02/2006, 03/30/2006, 0.1 Testing * 'Test execution', 02/01/2006, 08/09/2006, 0 }]alfa.png
- title
- required, the name of the graph, will be used as the root name for the file attachments generated by the plugin.
- imap
- optional, defaults to 'false', set to 'true' to have an image map generated (assuming the associated library supports it). In that case, node names will be interpreted as wiki page names.
- tooltips
- optional, defaults to 'false', set to 'true' to have tooltips generated (assuming the associated library supports it).
- page
- optional, defaults to the current page and is the page to which the generated data files are attached.
- output
- optional, defaults to 'png'. It indicates the image format generated. It must be a supported output type by the graphical application or library, and it must be displayable using the HTML img tag. In this context, png, jpg, and gif are the most useful.
- source
- optional, the name of the attachment file that contains the graph data.
- _body
- required, unless source is specified. The plugin body should contain the graph data, in the appropriate syntax for the specific plugin. It might contain nested plugin invocations; those are evaluated and the resulting data is used. Note that the plugin must return data in the expected graph data syntax, not in HTML. See this example for details.
- xaxislabel
- optional, label for the horizontal axis.
- yaxislabel
- optional, label for the vertical axis.
- height
- optional, height of generated chart in pixels.
- width
- optional, width of generated chart in pixels.
- legend
- optional, display chart legend.
- threed
- optional, render as a three dimensional chart (if supported).

- basefillpaint
- Value: Paint. Sets the base fill paint.
- baseitemlabelfont
- Value: Font. Sets the base item label font.
- baseitemlabelpaint
- Value: Paint. Sets the base item label paint.
- baseitemlabelsvisible
- Value: boolean. Sets the base flag that controls whether or not item labels are visible.
- baseoutlinepaint
- Value: Paint. Sets the base outline paint.
- baseoutlinestroke
- Value: Stroke. Sets the base outline stroke.
- outlinestroke
- Value: Stroke. Sets the outline stroke for ALL series.
- basepaint
- Value: Paint. Sets the base paint.
- baseseriesvisible
- Value: boolean. Sets the base visibility.
- baseseriesvisibleinlegend
- Value: boolean. Sets the base visibility in the legend.
- basestroke
- Value: Stroke. Sets the base stroke.
- fillpaint
- Value: Paint. Sets the fill paint for ALL series (optional).
- itemlabelfont
- Value: Font. Sets the item label font for ALL series. You can set this to null if you prefer to set the font on a per series basis.
- itemlabelpaint
- Value: Paint. Sets the item label paint for ALL series.
- itemlabelsvisible
- Value: boolean. Sets the visibility of the item labels for ALL series.
- outlinepaint
- Value: Paint. Sets the outline paint for ALL series (optional).
- outlinestroke
- Value: Stroke. Sets the outline stroke for ALL series.
- paint
- Value: Paint. Sets the paint to be used for ALL series,. If this is null, the renderer will use the paint for the series.
- seriesvisible
- Value: boolean. Sets the flag that controls the visibility of ALL series. This flag overrides the per series and default settings - you must set it to null if you want the other settings to apply.
- stroke
- Value: Stroke. Sets the stroke for ALL series.
- seriesfillpaint
- Value: CSV list of Paint. Set the paint values used for the listed series fill.
- seriesoutlinestroke
- Value: CSV list of Stroke. Set the outline stroke values used the listed for series.
- seriespaint
- Value: CSV list of Paint. Set the paint values used for the listed series.
- seriesvisible
- Value: CSV list of boolean. Set the flag values that control whether the listed series are visible.
- seriesvisibleinlegend
- Value: CSV list of boolean. Set the flag values that control whether the listed series are visible in the legend.
- seriesoutlinepaint
- Value: CSV list of Paint. Set the paint values used for the listed series outline.

- backgroundpaint
- Value: Paint. Sets the background color of the plot area.
- backgroundalpha
- Value: float. Sets the alpha transparency of the plot area background.
- nodatamessage
- Value: string. Sets the message that is displayed when the dataset is empty or null.
- outlinepaint
- Value: Paint.
- orientation
- Value: PlotOrientation. Sets the orientation for the plot.
- columnrenderingorder
- Value: SortOrder. Sets the order in which the columns should be rendered.
- rowrenderingorder
- Value: SortOrder. Sets the order in which the rows should be rendered.
- domaingridlinesvisible
- Value: boolean. Sets the flag that controls whether or not grid-lines are drawn against the
- domaingridlinestroke
- Value: Stroke. Sets the stroke used to draw grid-lines against the domain axis.
- domaingridlinepaint
- Value: Paint. Sets the paint used to draw the grid-lines (if any) against the domain
- rangegridlinesvisible
- Value: boolean. Sets the flag that controls whether or not grid-lines are drawn against the
- rangegridlinestroke
- Value: Stroke. Sets the stroke used to draw the grid-lines against the range axis.
- rangegridlinepaint
- Value: Paint. Sets the paint used to draw the grid lines against the range axis.
- rangecrosshairvisible
- Value: boolean. Sets the flag indicating whether or not the range crosshair is visible.
- rangecrosshairlockedondata
- Value: boolean. Sets the flag indicating whether or not the range crosshair should
- rangecrosshairValue
- Value: double. Sets the domain crosshair value.
- rangecrosshairstroke
- Value: Stroke. Sets the pen-style (Stroke) used to draw the crosshairs (if visible).
- rangecrosshairpaint
- Value: Paint. Sets the Paint used to color the crosshairs (if visible).
- weight
- Value: int. Sets the weight for the plot.
- anchorValue
- Value: double. Sets the anchor value.
They are indeed not working. I am using reflection to send delegate those calls to the underlying JFreeChart objects that render the chart and while I can verify that the calls are being made (try passing an incorrect value and you get an exception back) they are not having the desired effect. This mechanism works well in some graphs (Pie charts for example) but fails in others...
I am cooking a new version, I will try to see if there is any change I can do on my side that would fix that behavior.
Sorry about that,
-- NascifAbousalhNeto, 18-Apr-2007
I still don't know how to make the X-axis in date format or week format instead of in month format. Anyone knows how to do it?
-- YSLIN, 10-Apr-2009
Add new attachment
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
jpg |
5g default status is seen conn... | 80.8 kB | 1 | 04-Aug-2010 10:14 | 122.180.122.194 | |
png |
Alfa.png | 30.6 kB | 1 | 10-Apr-2009 11:23 | yslin | If the Start and End are "Date" instead of "Month" |
png |
Project Plan.png | 7.2 kB | 1 | 02-Jun-2005 00:37 | NascifAbousalhNeto |