ChartDirector Ver 3.1 (PHP Edition Edition)

Box.getHeight


Usage

getHeight()

Description

Get the height of the box.

In some usages, the height of a box may be dynamically determined. An example is the width of an LegendBox, which cannot be known until all data are available. In these cases, the width is undefined until the chart has been laid out (using BaseChart.layout) or the chart image has been drawn (eg. using BaseChart.makeChart, BaseChart.makeChart2 or BaseChart.makeSession).

Arguments

None

Return Value

The height of the box in pixels.


demo/borderpie.php".]
<?php require_once("../lib/phpchartdir.php"); #The data for the pie chart $data = array(25, 18, 15, 12, 8, 30, 35); #The labels for the pie chart $labels = array("Labor", "Licenses", "Taxes", "Legal", "Insurance", "Facilities", "Production"); #Create a PieChart object of size 360 x 280 pixels $c = new PieChart(360, 280); #Set the background color of the chart to silver (silverGradient), and the #border color to black, with 1 pixel 3D border effect. $c->setBackground($c->gradientColor($silverGradient), 0, 1); #Set the center of the pie at (180, 140) and the radius to 100 pixels $c->setPieSize(180, 140, 100); #Add a title to the pie chart, using light grey (0xc0c0c0) background and black #border $titleObj = $c->addTitle("Project Cost Breakdown"); $titleObj->setBackground(0xc0c0c0, 0x0); #Draw the pie in 3D $c->set3D(); #Set the border color of the sectors to black (0x0) $c->setLineColor(0x0); #Set the background color of the sector label to the same color as the sector. #Use a black border. $labelStyleObj = $c->setLabelStyle(); $labelStyleObj->setBackground(SameAsMainColor, 0x0); #Set the pie data and the pie labels $c->setData($data, $labels); #Explode the 1st sector (index = 0) $c->setExplode(0); #output the chart header("Content-type: image/png"); print($c->makeChart2(PNG)); ?>


er="1" cellpadding="5" cellspacing="0" width="98%"> ArgumentDefaultDescription name(Mandatory)The name of the session variable used to store the chart image. If there are multiple chart images in the same web page, each image must use a different name.imageFormatPNGA constant representing the format of the image. Must be one of the pre-defined constants PNG, JPG, GIF, BMP or WMP.

Return Value

A string representing the query parameters for retrieving the image using the myimage.php utility.


Chart.gradientColor.htm">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');