ChartDirector Ver 3.1 (PHP Edition Edition)

BarLayer.setMinLabelSize


Usage

setMinLabelSize(s)

Description

Set the minimum height (or width for horizontal bars) of the bar segments below which data labels will be hidden.

In ChartDirector, for a bar layer, data labels (Layer.setDataLabelStyle) are drawn internal to the bar segement, while the aggregate labels (Layer.setAggregateLabelStyle) are drawn external to the bar.

ChartDirector will disable data labels for a bar segment if the bar segment is too short to contain the data label.

By default, ChartDirector will automatically determine what is meant by "too short". The setMinLabelSize method can be used to manually defined the threshold for "too short".

Sometimes it may be desirable to display the data label even though it cannot be contained within the bar segment. In this case, the setMinLabelSize can be used to set the threshold to 0.

Arguments

ArgumentDefaultDescription
s(Mandatory)The minimum length of the bar segments in pixels, below which data labels will be hidden.

Return Value

None


tent"> 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');