ChartDirector Ver 3.1 (PHP Edition Edition)

ArrayMath.expAvg


Usage

expAvg(smoothingFactor)

Description

Replace each element of the ArrayMath object by its exponential average.

The exponential average is computed by :

avg(n) = value(n) * smoothingFactor + avg(n - 1) * (1 - smoothingFactor)

where avg(n) is the exponential average of the nth element, and value(n) is the value of the nth element.

For the first element (n = 0), its exponential average is assumed to be equal to its original value.

Arguments

ArgumentDefaultDescription
smoothingFactor(Mandatory)The smoothing factor used for computing exponential average. It should be between 0 - 1.

Return Value

The current ArrayMath object.


/th>DefaultDescription s(Mandatory)The minimum height (or width if x and y axes are swapped) of an area below which data labels will be hidden.

Return Value

None


d>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.
venue VALUES (1015, '1995-07-01', '297', '152', '152');