ChartDirector Ver 3.1 (PHP Edition Edition)

Layer


The Layer class is the base class for all XYChart layer classes.

MethodInheritedDescription
set3D(Self)Set the 3D depth of the layer, and the 3D gap between the current layer and the next layer.
setLineWidth(Self)Set the default line width of lines when drawing data sets on the layer.
setBorderColor(Self)Set the default border color and 3D raised effect when drawing data sets on the layer.
setLegend(Self)Set the order of the data set names when entered into the legend box.
setDataCombineMethod(Self)Set the method used to combine multiple data sets in a layer.
addDataSet(Self)Add a data set to the chart layer.
addDataGroup(Self)Open a new data group.
addExtraField(Self)Associate an extra text to each data item or data set.
getDataSet(Self)Get the requested DataSet object.
setUseYAxis2(Self)Determine if the primary or secondary y-axis should be used when drawing the data sets.
setXData(Self)Set the x values of the data points in the data sets.
setXData2(Self)Set the x values of the data points in the data sets as evenly distributed in a range.
getXCoor(Self)Get the x coordinate of a point given the x value.
getYCoor(Self)Get the y coordinate of a point given the y value.
xZoneColor(Self)Create a x-zone color. A x-zone will change from one color to another depending on a threshold value on the x-axis.
yZoneColor(Self)Create a y-zone color. A y-zone will change from one color to another depending on a threshold value on the y-axis.
setDataLabelStyle(Self)Enable data labels and set their styles.
setDataLabelFormat(Self)Set the data label format.
addCustomDataLabel(Self)Add a custom data label to a data point.
setAggregateLabelStyle(Self)Enable aggregate labels and set their styles.
setAggregateLabelFormat(Self)Set the aggregate label format.
addCustomAggregateLabel(Self)Add a custom aggregate label to an aggregated object.
getImageCoor(Self)Get the image map coordinates of a data point as represented in the layer as HTML image map attributes.
getImageCoor2(Self)Get the image map coordinates of a region containing all data points at the given x-position as HTML image map attributes.
getHTMLImageMap(Self)Generate the HTML image map for all data points as represented on the layer.
setHTMLImageMap(Self)Override the default arguments used when generating HTML image map for the layer.