MultiBarGraph - Generates a multi bar chart (PNG)

Generates a multi bar 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.
KeychoiceIn & Out Specifies the position to display item names.
none [] - Don't display
top [top] - Display on top of chart
bottom [bottom] - Display on bottom of chart
left [left] - Display on left of chart
right [right] - Display on right of chart
RotatebooleanIn & Out Specifies whether to make the graph transverse.
true [true] - Makes it to a horizontal bar chart
false [false] - Makes it to the vertical bar graph.
BarWidthintIn & Out Specifies the thickness of the bar by percentage.
When omitted, it becomes 60%.
OtherPercentdecimalIn & Out Specifies the ratio of items "Others".
For example, when it's set to "1.0", the item whose ratio of total is less than 1% is brought together in "Others".
3DbooleanIn & Out Specifies if enables chart 3D.
true [true] - 3D
false [false] - Not 3D
LabelRotateintIn & Out Specifies the inclination of the label of the chart.
If specifies "-20", The label becomes a right shoulder going up. To display the label vertically, specifies like "90" or "-90"
AxisSettinggroup- Properties for specifies axis information.
LeftMinintIn & Out Specifies minimum of axis Y.
LeftMaxintIn & Out Specifies maximum of axis Y.
LeftLabelstringIn & Out Specifies label of axis Y.
BottomLabelstringIn & Out Specifies label of axis X.
BackwallPaintchoiceIn & Out Specifies a background of the chart.
none []
No background
closs [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
BarNameStringYesGroup name.
KeyStringYesItem name.
ValueDecimalYesItem value.
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.

StackedBarGraph component

Generates a stacked bar chart. The input stream is the same. It can be replaced each other.

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.