ChartDirector Ver 3.1 (PHP Edition Edition)

MultiChart


The MultiChart class represents multi-chart. MultiChart is a subclass of BaseChart.

A multi-chart is a container to contain multiple charts. You can use a multi- chart to combine multiple BaseChart objects (or its subclass such as PieChart, XYChart and PolarChart) into one image.

MethodInheritedDescription
new MultiChart(Self)Create a MultiChart object.
addChart(Self)Add a BaseChart object (or its subclass such as PieChart, XYChart and PolarChart) into the multi-chart.
setSizeBaseChartSet the size of the chart.
setBackgroundBaseChartSet the background color, border color and 3D border effect of the chart.
setBorderBaseChartSet the border color of the chart.
setWallpaperBaseChartUse the image from the specified file as the wallpaper to repetitively fill the background of the chart.
setBgImageBaseChartUse the image from the specified file as the background image of the chart.
setSearchPathBaseChartSet the file system search path for loading image files.
setTransparentColorBaseChartSpecify a certain color to represent the transparent color when writing the chart to an image file.
setAntiAliasBaseChartControl whether anti-alias is used when drawing lines, shapes and text.
addTitleBaseChartAdd a title at the top center of the chart.
addTitle2BaseChartAdd a title to the chart.
addLegendBaseChartAdd a legend box to the chart.
getLegendBaseChartGet the LegendBox object representing the legend box in the chart.
getDrawAreaBaseChartRetrieve the internal DrawArea object that is used to draw the chart.
addTextBaseChartAdd a text box to the chart.
addLineBaseChartAdd a line to the chart.
setColorBaseChartChange the color at the specified position in the palette.
setColorsBaseChartChange the colors in the palette.
setColors2BaseChartChange the colors in the palette, starting from the specified position in the palette.
getColorBaseChartGet the color at the specified position of the palette.
halfColorBaseChartCreate a color that is half the intensity of the given color.
dashLineColorBaseChartCreate dash line colors.
patternColorBaseChartCreate a pattern color using an array of colors as the bitmap pattern.
patternColor2BaseChartCreate a pattern color by loading the pattern from an image file.
gradientColorBaseChartCreate a two-point gradient color.
gradientColor2BaseChartCreate a multi-point gradient color.
setDefaultFontsBaseChartSet the defaults for normal, bold, italic and bold-italic fonts.
setFontTableBaseChartSet an entry in the font table to the specified font name.
setNumberFormatBaseChartSet the characters used for thousand separator, decimal point, and negative sign.
setMonthNamesBaseChartSet the names of the months for date/time formatting purposes.
setWeekDayNamesBaseChartSet the names of the week days for date/time formatting purposes.
setAMPMBaseChartSet the names to be used to denote morning and afternoon.
layoutBaseChartPerform auto-scaling of the axis and compute the positions of the various objects in the chart.
makeChartBaseChartGenerate the chart image and save it into a file.
makeChart2BaseChartGenerate the chart as an image in memory.
makeChart3BaseChartGenerate the chart in internal format and return a DrawArea object to allow adding custom drawings on top of the chart.
makeSessionBaseChartGenerate the chart as an image and save it to a session variable.
getHTMLImageMapBaseChartGenerate an HTML image map for the chart.