ChartDirector Ver 3.1 (PHP Edition Edition)

XYChart


The XYChart class represents XY charts. The XYChart class is a subclass of BaseChart.

MethodInheritedDescription
new XYChart(Self)Create a XYChart object.
yAxis(Self)Retrieve the Axis object representing the primary y-axis of the XYChart.
yAxis2(Self)Retrieve the Axis object representing secondary y-axis of the XYChart.
syncYAxis(Self)Set a linear formula to synchronize the secondary y-axis scale to the primary y-axis scale.
setYAxisOnRight(Self)Interchange the position of the primary y-axis and the secondary y-axis.
xAxis(Self)Retrieve the Axis object representing primary x-axis of the XYChart.
xAxis2(Self)Retrieve the Axis object representing secondary x-axis of the XYChart.
setXAxisOnTop(Self)Interchange the position of the primary x-axis and the secondary x-axis.
swapXY(Self)Swap the position of the x and y axes, so the x-axes will become vertical, and the y-axes will become horizontal.
setPlotArea(Self)Set the position, size, background colors, edge color and grid colors of the plot area.
setClipping(Self)Enable clipping on the plot area.
addBarLayer(Self)Add a bar layer to the XYChart, and specify the data set to use for drawing the bars.
addBarLayer2(Self)Add an empty bar layer to the XYChart.
addBarLayer3(Self)Add a multi-color bar layer to the XYChart, and specify the data set to use for drawing the bars.
addLineLayer(Self)Add a line layer to the XYChart, and specify the data set to use for drawing the line.
addLineLayer2(Self)Add an empty line layer to the XYChart.
addSplineLayer(Self)Add a spline layer to the XYChart.
addStepLineLayer(Self)Add a step line chart layer to the XYChart.
addTrendLayer(Self)Add a trend chart layer to the XYChart, and specify the data set to use for drawing the trend line.
addTrendLayer2(Self)Add a trend chart layer to the XYChart, and specify the x and y values for drawing the trend line.
addInterLineLayer(Self)Add an inter-line layer the XYChart. An inter-line layer is used to fill the region between any two lines (straight lines, splines, step lines, etc).
addScatterLayer(Self)Add a scatter chart layer to the XYChart.
addAreaLayer(Self)Add an area chart layer to the XYChart, and specify the data set to use for drawing the area.
addAreaLayer2(Self)Add an empty area chart layer to the XYChart.
addHLOCLayer(Self)Add a high-low-open-close (HLOC) layer to the XYChart, and specify the data sets to use for drawing the layer.
addHLOCLayer2(Self)Add an empty high-low-open-close (HLOC) layer to the XYChart.
addCandleStickLayer(Self)Add a candlestick layer to the XYChart, and specify the data sets to use for drawing the layer.
addBoxWhiskerLayer(Self)Add a box-whisker layer to the XYChart, and specify the data sets to use for drawing the layer.
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.