ChartDirector Ver 3.1 (PHP Edition Edition)

BarLayer.setBarGap


Usage

setBarGap(barGap[, subBarGap])

Description

Set the gap between the bars in a bar chart layer.

In the setBarGap method, the gap between the bars is expressed as the portion of the space between the bars. For example, a bar gap of 0.2 means 20% of the distance between two adjacent bars is the gap between the bars.

A bar gap of 0 means there is no gap in between the bars. The bar gap can be negative. In this case, the bars will overlap. The pre-defined constant TouchBar ( = -1.7E-100) means the bars will "touch", that is, the bar borders overlap, so two adjacent bars will share the same border.

For multi-bar layers (bar layers using the Side data combine method, or for stacked bar layers with multiple data groups), barGap refers to the portion of the space between bar groups, while subBarGap refers to the portion of the space between bars within the bar group.

Arguments

ArgumentDefaultDescription
barGap(Mandatory)The portion of the space between the bars (or between bar groups for multi-bar layers).
subBarGap0.2This argument only applies to multi-bar charts. It is the portion of the space between the bars in a bar group.

Return Value

None


/td>LayerAdd a data set to the chart layer.addDataGroupLayerOpen a new data group.addExtraFieldLayerAssociate an extra text to each data item or data set.getDataSetLayerGet the requested DataSet object.setUseYAxis2LayerDetermine if the primary or secondary y-axis should be used when drawing the data sets.setXDataLayerSet the x values of the data points in the data sets.setXData2LayerSet the x values of the data points in the data sets as evenly distributed in a range.getXCoorLayerGet the x coordinate of a point given the x value.getYCoorLayerGet the y coordinate of a point given the y value.xZoneColorLayerCreate a x-zone color. A x-zone will change from one color to another depending on a threshold value on the x-axis.yZoneColorLayerCreate a y-zone color. A y-zone will change from one color to another depending on a threshold value on the y-axis.setDataLabelStyleLayerEnable data labels and set their styles.setDataLabelFormatLayerSet the data label format.addCustomDataLabelLayerAdd a custom data label to a data point.setAggregateLabelStyleLayerEnable aggregate labels and set their styles.setAggregateLabelFormatLayerSet the aggregate label format.addCustomAggregateLabelLayerAdd a custom aggregate label to an aggregated object.getImageCoorLayerGet the image map coordinates of a data point as represented in the layer as HTML image map attributes.getImageCoor2LayerGet the image map coordinates of a region containing all data points at the given x-position as HTML image map attributes.getHTMLImageMapLayerGenerate the 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.
(Self)Replace each element of the ArrayMath object by its moving median.movPercentile(Self)Replace each element of the ArrayMath object by its moving percentile.movMax(Self)Replace each element of the ArrayMath object by its moving maximum.movMin(Self)Replace each element of the ArrayMath object by its moving minimum.movStdDev(Self)Replace each element of the ArrayMath object by its moving standard deviation.movCorr(Self)Replace each element of the ArrayMath object by the moving correlation with another array or with itself.lowess(Self)Fit a curve through the data points in the ArrayMath object using the LOWESS algorithm.lowess2(Self)Fit a curve through the data points in the ArrayMath object using the LOWESS algorithm, where the spacing of the data points is supplied by the given array.result(Self)Get the content of the ArrayMath object as a normal array to be used in other ChartDirector API.max(Self)Get the maximum value of the elements of the ArrayMath object.min(Self)Get the minimum value of the elements of the ArrayMath object.avg(Self)Get the average value of the elements of the ArrayMath object.sum(Self)Get the total value of the elements of the ArrayMath object.med(Self)Get the median value of the elements of the ArrayMath object.percentile(Self)Get the required percentile value of the elements of the ArrayMath object.maxIndex(Self)Get the index of the maximum value element of the ArrayMath object.minIndex(Self)Get the index of the minimum value element of the ArrayMath object.
(1059, '1999-03-01', '371', '635', '722');