GanttChart - Generates a gantt chart (PNG)

Generates a gantt chart image of the PNG format based on input data.
For the flow example that uses this component, please refer to "Example of flow using various chart components".
This component uses BFO library.

Chart sample


Stream Information

InputFormatRecord
Number of Inputs1
Description Field is pre-defined for this chart. This is read-only. For definitions, please refer to following topic "Input stream definition".
OutputFormatBinary
DescriptionOutputs the chart image of the PNG format.

Output Stream Variables

NameData TypeDescription
AreaTagsStringClickable map information of generated chart. Please refer to following topic "Stream variable AreaTags".

Component Properties

NameData TypeMappingDescription
WidthintIn & Out Specifies the width of chart image by pixel.
HeightintIn & Out Specifies the height of chart image by pixel.
TitlestringIn & Out Specifies the label of top of the chart.
BarWidthintIn & Out Specifies the thickness of the bar by percentage.
When omitted, it becomes 75%.
LabelFormatchoiceIn & Out Specifies the date format of axis X.
date(yyyy/MM) [date(yyyy/MM)]
Display in the format <year>/<month>
date(yyyy/MM/dd) [date(yyyy/MM/dd)]
Display in the format <year>/<month>/<day>
date(MM/dd) [date(MM/dd)]
Display in the format <month>/<day>
Axis Configurationgroup- Properties specifying details of axis X and Y.
Y-axis labelsstringIn & Out Specifies the label of axis Y.
The minimum value of X-axisdateIn & Out Specifies the start date of axis X by clicking the date in the calendar which is displayed when clicking the field. It can be set by inputting the value in "yyyy/MM/dd" format directly.
The maximum value of X-axisdateIn & Out Specifies the end date of axis X by clicking the date in the calendar which is displayed when clicking the field. It can be set by inputting the value in "yyyy/MM/dd" format directly.
X-axis labelsstringIn & Out Specifies the label of axis X.
BackwallPaintchoiceIn & Out Specifies a background of the chart.
none []
No background
cross [stripe(#EEEEEE,line=black,axis=left,altaxis=bottom)]
Lattice
stripe [stripe(#DDDDDD, #EEEEEE, line=#AAAAAA, axis=bottom, altaxis=left)]
Stripe
gradation [gradient(#CCCCFF,white)]
Blue gradation
Standard ColorsstringIn & Out Specifies colors or patterns to use in a chart.
36 of deefault colors are defined. These are used periodically. When clicking the field, the "Select default colors" dialog is displayed. Click the color, edit it, click the "Set" button, then the color is changed.

Transaction

CommitDo nothing
RollbackDo nothing

Exceptions

TypeParameterStream for error handling flowError
Code
Description
Exception None This component's input stream - When failed to generate a chart
RecordNotFoundException None This component's input stream2When no record is input

Input stream definition

Input stream of this component is defined as follows.

Field NameTypeRequiredDescription
KeyStringYesItem name.
MinDateTimeYesStart date.
MaxDateTimeYesEnd date.
ColorStringNoBar color.
If specified, use specified color instead of the color specified by Colors .
TitleStringNoTitle displayed when put mouse over the item.
If specified, outputs the stream variable AreaTags with the value in area tag.
HREFStringNoURL of the page linked with the chart item
If specified, outputs the stream variable AreaTags with the value in area tag.
TargetStringNoThe target attribute of the link specified by HREF field.
If specified, outputs the stream variable AreaTags with the value in area tag.

Stream variable AreaTags

It is possible to make the generated chart to "clickable map", which is possible to jump to another web sites by the clicked position in the chart.
When the value is set to Title, HREF, and Target field by the input stream definition, the area tag of clickable map information when the chart is referred by a web browser is set to stream variable AreaTags. If img and map are used together with the area tag in HTML that uses Velocity to refer to the chart by a web browser, it is possible to display a title by pointing mouse or to jump by clicking some area.
In addition, operation can be changed as JavaScript is executed when clicking by replacing with the Graph component and customizing it. For details, please refer to Graph component's help.

Replacing component

This component can be replaced with the following components. Click "Replacing component" of the menu when right-clicking the compoent.

Graph component

If you want to customize a chart more, you can customize further details by replacing with Graph component. You can customize chart more by modifying the template in Graph component. For details, please refer to Graph component's help
After replacing with Graph component, you can not replace it with this component again.