ChartDirector Ver 4.1 (ColdFusion Edition)

BarLayer


The BarLayer class represents bar layers. BarLayer is a subclass of Layer.

BarLayer objects are created using XYChart.addBarLayer, XYChart.addBarLayer2 and XYChart.addBarLayer3.

MethodInheritedDescription
setBarGap(Self)Sets the gap between the bars in a bar chart layer.
setBarWidth(Self)Sets the width of the bars.
setOverlapRatio(Self)Sets overlapping among bars in within a bar group in a multi-bar chart.
setBarShape(Self)Sets the shape of the bar(s) using built-in shapes.
setBarShape2(Self)Sets the shape of the bar(s) to a custom shape defined using an array of (x, y) coordinates.
setMinLabelSize(Self)Sets the minimum height (or width for horizontal bars) of the bar segments below which data labels will be hidden.
setIconSize(Self)Sets the size of the icon(s) to be used in legend box.
set3DLayerSets the 3D depth of the layer, and the 3D gap between the current layer and the next layer.
setLineWidthLayerSets the default line width of lines when drawing data sets on the layer.
setBorderColorLayerSets the default border color and 3D raised effect when drawing data sets on the layer.
setLegendOrderLayerSets the order of the data set names as appeared in the legend box.
setLegendLayerSets the order of the data set names as appeared in the legend box.
setDataCombineMethodLayerSets the method used to combine multiple data sets in a layer.
addDataSetLayerAdds a data set to the chart layer.
getDataSetLayerGets the requested DataSet object.
addDataGroupLayerOpen a new data group.
addExtraFieldLayerAdds an array of text to be used as an extra field in various places.
addExtraField2LayerAdds an array of numbers/dates to be used as an extra field in various places.
setUseYAxisLayerDetermine the y-axis to use when drawing the data sets.
setUseYAxis2LayerDetermine if the primary or secondary y-axis should be used when drawing the data sets.
setXDataLayerSets the x values of the data points in the data sets.
setXData2LayerSets the x values of the data points in the data sets as evenly distributed in a range.
alignLayerLayerAligns the layer with a data set of another bar chart layer in Side layout.
getXCoorLayerGets the x pixel coordinate of a point given the x data value.
getYCoorLayerGets the y pixel coordinate of a point given the y data value.
xZoneColorLayerCreates a x-zone color. A x-zone will change from one color to another depending on a threshold value on the x-axis.
yZoneColorLayerCreates a y-zone color. A y-zone will change from one color to another depending on a threshold value on the y-axis.
setDataLabelStyleLayerEnables data labels and sets their styles.
setDataLabelFormatLayerSets the data label format.
addCustomDataLabelLayerAdds a custom data label to a data point.
setAggregateLabelStyleLayerEnables aggregate labels and sets their styles.
setAggregateLabelFormatLayerSets the aggregate label format.
addCustomAggregateLabelLayerAdds a custom aggregate label to an aggregated object.
addCustomGroupLabelLayerAdds a custom data group label to object representing the group.
getImageCoorLayerGets the image map coordinates of a data point as represented in the layer as HTML image map attributes.
getImageCoor2LayerGets the image map coordinates of a region containing all data points at the given x-position as HTML image map attributes.
getHTMLImageMapLayerGenerates an HTML image map for all data points as represented on the layer.
setHTMLImageMapLayerOverride the default arguments used when generating HTML image map for the layer.