ChartDirector Ver 4.1 (PHP Edition Edition)

BaseChart


The BaseChart class is an abstract class containing methods that are common to all chart types.

MethodInheritedDescription
setSize(Self)Sets the size of the chart.
setBackground(Self)Sets the background color, border color and 3D border effect of the chart.
setRoundedFrame(Self)Sets the border style of the chart to rounded corners.
setBorder(Self)Sets the border color of the chart.
setWallpaper(Self)Uses the image from the specified file as the wallpaper to repetitively fill the background of the chart.
setBgImage(Self)Uses the image from the specified file as the background image of the chart.
setSearchPath(Self)Sets the file system search path for loading image files.
setTransparentColor(Self)Specifies a certain color to mean transparent when creating the image output, or to include alpha transparency channel in the output.
setAntiAlias(Self)Controls whether anti-alias is used when drawing lines, shapes and text.
addTitle(Self)Adds a title at the top center of the chart.
addTitle2(Self)Adds a title to the chart.
addLegend(Self)Adds a legend box to the chart.
addLegend2(Self)Adds a legend box to the chart with grid layout.
getLegend(Self)Gets the LegendBox object representing the legend box in the chart.
layoutLegend(Self)Lays out and gets the LegendBox object representing the legend box in the chart.
getDrawArea(Self)Retrieves the internal DrawArea object that is used to draw the chart.
addText(Self)Adds a text box to the chart.
addLine(Self)Adds a line to the chart.
addExtraField(Self)Adds an array of text to be used as an extra field in various places.
addExtraField2(Self)Adds an array of numbers/dates to be used as an extra field in various places.
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)Gets the color at the specified position of the palette.
halfColor(Self)Creates a color that is half the intensity of the given color.
dashLineColor(Self)Creates a dash line color.
patternColor(Self)Creates a pattern color using an array of colors as the bitmap pattern.
patternColor2(Self)Creates a pattern color by loading the pattern from an image file.
linearGradientColor(Self)Creates a two-point linear gradient color.
linearGradientColor2(Self)Creates a multi-point linear gradient color.
radialGradientColor(Self)Creates a two-point radial gradient color.
radialGradientColor2(Self)Creates a multi-point radial gradient color.
gradientColor(Self)Creates a two-point linear gradient color.
gradientColor2(Self)Creates a multi-point linear gradient color.
setDefaultFonts(Self)Sets the defaults for normal, bold, italic and bold-italic fonts.
setFontTable(Self)Sets an entry in the font table to the specified font name.
formatValue(Self)Formats a number/date using the ChartDirector formatting syntax as is in Parameter Substitution and Formatting.
setNumberFormat(Self)Sets the characters used for thousand separator, decimal point, and negative sign.
setMonthNames(Self)Sets the names of the months for date/time formatting purposes.
setWeekDayNames(Self)Sets the names of the week days for date/time formatting purposes.
setAMPM(Self)Sets 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)Generates the chart image and save it into a file.
makeChart2(Self)Generates the chart as an image in memory.
makeChart3(Self)Generates the chart in internal format and return a DrawArea object to allow adding custom drawings on top of the chart.
makeSession(Self)Generates the chart as an image and save it to a session variable.
getHTMLImageMap(Self)Generates an HTML image map for the chart.
getChartMetrics(Self)Gets the chart metrics for passing to WebChartViewer to support view ports.