ChartDirector Ver 3.1 (PHP Edition Edition)

BaseChart.getDrawArea


Usage

getDrawArea()

Description

Retrieve the internal DrawArea object that is used to draw the chart.

The most common reason of accessing the internal DrawArea object is to add custom drawings (lines, texts, shapes, etc) to the chart.

If the custom drawings are drawn before drawing the chart image (eg. using BaseChart.makeChart, BaseChart.makeChart2 or BaseChart.makeSession), the custom drawings will be at the background of the chart.

Arguments

None

Return Value

A DrawArea object that can be used to add custom text and shapes to the chart.


be used in any ChartDirector API that expects a color as an argument.

bgColorTransparentThe background color of the title box.edgeColorTransparentThe border color of the title box.

Return Value

A TextBox object representing the title box. You may use this object to fine-tune the title box appearance.


A TextBox object representing the text box added. You may use this object to fine-tune the appearance of the text box.


ataSet 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');