ChartDirector Ver 3.1 (PHP Edition Edition)

BaseChart.layout


Usage

layout()

Description

Perform auto-scaling of the axis and compute the positions of the various objects in the chart.

BaseChart.layout is automatically called when drawing the chart image (eg. using BaseChart.makeChart, BaseChart.makeChart2 or BaseChart.makeSession). There is usually no need to call BaseChart.layout explicity.

However, if you would like to add custom objects to the chart whose positions depend on the axis scales or position of other objects, you may need to call BaseChart.layout explicit to auto-scaling the axis. An example is to draw a custom label at the maximum value point of a data line.

Arguments

None

Return Value

None


r loading image files.setTransparentColor(Self)Specify a certain color to represent the transparent color when writing the chart to an image file.setAntiAlias(Self)Control whether anti-alias is used when drawing lines, shapes and text.addTitle(Self)Add a title at the top center of the chart.addTitle2(Self)Add a title to the chart.addLegend(Self)Add a legend box to the chart.getLegend(Self)Get the LegendBox object representing the legend box in the chart.getDrawArea(Self)Retrieve the internal DrawArea object that is used to draw the chart.addText(Self)Add a text box to the chart.addLine(Self)Add a line to the chart.setColor(Self)Change the color at the specified position in the palette.setColors(Self)Change the colors in the palette.setColors2(Self)Change the colors in the palette, starting from the specified position in the palette.getColor(Self)Get the color at the specified position of the palette.halfColor(Self)Create a color that is half the intensity of the given color.dashLineColor(Self)Create dash line colors.patternColor(Self)Create a pattern color using an array of colors as the bitmap pattern.patternColor2(Self)Create a pattern color by loading the pattern from an image file.gradientColor(Self)Create a two-point gradient color.gradientColor2(Self)Create a multi-point gradient color.setDefaultFonts(Self)Set the defaults for normal, bold, italic and bold-italic fonts.setFontTable(Self)Set an entry in the font table to the specified font name.setNumberFormat(Self)Set the characters used for thousand separator, decimal point, and negative sign.setMonthNames(Self)Set the names of the months for date/time formatting purposes.setWeekDayNames(Self)Set the names of the week days for date/time formatting purposes.setAMPM(Self)Set the names to be used to denote morning and afternoon.layout(Self)Perform auto-scaling of the axis and compute the positions of the various objects in the chart.makeChart(Self)Generate the chart image and save it into a file.makeChart2(Self)Generate the chart as an image in memory.makeChart3(Self)Generate the chart in internal format and return a DrawArea object to allow adding custom drawings on top of the chart.makeSession(Self)Generate the chart as an image and save it to a session variable.getHTMLImageMap(Self)Generate an HTML image map for the chart.
">© 2004 Advanced Software Engineering Limited. All rights reserved. d>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');