📄 phpchartdir.php
字号:
callmethod("Axis.setLabelStep", $this->ptr, $majorTickStep, $minorTickStep, $majorTickOffset, $minorTickOffset);
}
function setLinearScale($lowerLimit = Null, $upperLimit = Null, $majorTickInc = 0, $minorTickInc = 0) {
if (is_null($lowerLimit))
$this->setLinearScale3();
else if (is_null($upperLimit))
$this->setLinearScale3($lowerLimit);
else if (is_array($majorTickInc))
$this->setLinearScale2($lowerLimit, $upperLimit, $majorTickInc);
else
callmethod("Axis.setLinearScale", $this->ptr, $lowerLimit, $upperLimit, $majorTickInc, $minorTickInc);
}
function setLinearScale2($lowerLimit, $upperLimit, $labels) {
callmethod("Axis.setLinearScale2", $this->ptr, $lowerLimit, $upperLimit, $labels);
}
function setLinearScale3($formatString = "") {
callmethod("Axis.setLinearScale3", $this->ptr, $formatString);
}
function setLogScale($lowerLimit = Null, $upperLimit = Null, $majorTickInc = 0, $minorTickInc = 0) {
if (is_null($lowerLimit))
$this->setLogScale3();
else if (is_null($upperLimit))
$this->setLogScale3($lowerLimit);
else if (is_array($majorTickInc))
$this->setLogScale2($lowerLimit, $upperLimit, $majorTickInc);
else
callmethod("Axis.setLogScale", $this->ptr, $lowerLimit, $upperLimit, $majorTickInc, $minorTickInc);
}
function setLogScale2($lowerLimit, $upperLimit, $labels = 0) {
if (is_array($labels))
callmethod("Axis.setLogScale2", $this->ptr, $lowerLimit, $upperLimit, $labels);
else
#compatibility with ChartDirector Ver 2.5
$this->setLogScale($lowerLimit, $upperLimit, $labels);
}
function setLogScale3($formatString = "") {
if (!is_string($formatString)) {
#compatibility with ChartDirector Ver 2.5
if ($formatString)
$this->setLogScale3();
else
$this->setLinearScale3();
}
else
callmethod("Axis.setLogScale3", $this->ptr, $formatString);
}
function setDateScale($lowerLimit = Null, $upperLimit = Null, $majorTickInc = 0, $minorTickInc = 0) {
if (is_null($lowerLimit))
$this->setDateScale3();
else if (is_null($upperLimit))
$this->setDateScale3($lowerLimit);
else if (is_array($majorTickInc))
$this->setDateScale2($lowerLimit, $upperLimit, $majorTickInc);
else
callmethod("Axis.setDateScale", $this->ptr, $lowerLimit, $upperLimit, $majorTickInc, $minorTickInc);
}
function setDateScale2($lowerLimit, $upperLimit, $labels) {
callmethod("Axis.setDateScale2", $this->ptr, $lowerLimit, $upperLimit, $labels);
}
function setDateScale3($formatString = "") {
callmethod("Axis.setDateScale3", $this->ptr, $formatString);
}
function syncAxis($axis, $slope = 1, $intercept = 0) {
callmethod("Axis.syncAxis", $this->ptr, $axis->ptr, $slope, $intercept);
}
function copyAxis($axis) {
callmethod("Axis.copyAxis", $this->ptr, $axis->ptr);
}
function addLabel($pos, $label) {
callmethod("Axis.addLabel", $this->ptr, $pos, $label);
}
function addMark($lineColor, $value, $text = "", $font = "", $fontSize = 8) {
return new Mark(callmethod("Axis.addMark", $this->ptr, $lineColor, $value, $text, $font, $fontSize));
}
function addZone($startValue, $endValue, $color) {
callmethod("Axis.addZone", $this->ptr, $startValue, $endValue, $color);
}
function getCoor($v) {
return callmethod("Axis.getCoor", $this->ptr, $v);
}
function getLength() {
return callmethod("Axis.getLength", $this->ptr);
}
function getMinValue() {
return callmethod("Axis.getMinValue", $this->ptr);
}
function getMaxValue() {
return callmethod("Axis.getMaxValue", $this->ptr);
}
function getScaleType() {
return callmethod("Axis.getScaleType", $this->ptr);
}
function getTicks() {
return callmethod("Axis.getTicks", $this->ptr);
}
function getLabel($i) {
return callmethod("Axis.getLabel", $this->ptr, $i);
}
function getAxisImageMap($noOfSegments, $mapWidth, $url, $queryFormat = "", $extraAttr = "", $offsetX = 0, $offsetY = 0) {
return callmethod("Axis.getAxisImageMap", $this->ptr, $noOfSegments, $mapWidth, $url, $queryFormat, $extraAttr, $offsetX, $offsetY);
}
function getHTMLImageMap($url, $queryFormat = "", $extraAttr = "", $offsetX = 0, $offsetY = 0) {
return callmethod("Axis.getHTMLImageMap", $this->ptr, $url, $queryFormat, $extraAttr, $offsetX, $offsetY);
}
}
class AngularAxis {
function AngularAxis($ptr) {
$this->ptr = $ptr;
}
function setLabelStyle($font = "bold", $fontSize = 10, $fontColor = TextColor, $fontAngle = 0) {
return new TextBox(callmethod("AngularAxis.setLabelStyle", $this->ptr, $font, $fontSize, $fontColor, $fontAngle));
}
function setLabelGap($d) {
callmethod("AngularAxis.setLabelGap", $this->ptr, $d);
}
function setLabels($labels, $formatString = Null) {
if (is_null($formatString))
return new TextBox(callmethod("AngularAxis.setLabels", $this->ptr, $labels));
else
return $this->setLabels2($labels, $formatString);
}
function setLabels2($labels, $formatString = "") {
return new TextBox(callmethod("AngularAxis.setLabels2", $this->ptr, $labels, $formatString));
}
function addLabel($pos, $label) {
callmethod("AngularAxis.addLabel", $this->ptr, $pos, $label);
}
function setLinearScale($lowerLimit, $upperLimit, $majorTickInc = 0, $minorTickInc = 0) {
if (is_array($majorTickInc))
$this->setLinearScale2($lowerLimit, $upperLimit, $majorTickInc);
else
callmethod("AngularAxis.setLinearScale", $this->ptr, $lowerLimit, $upperLimit, $majorTickInc, $minorTickInc);
}
function setLinearScale2($lowerLimit, $upperLimit, $labels) {
callmethod("AngularAxis.setLinearScale2", $this->ptr, $lowerLimit, $upperLimit, $labels);
}
function addZone($startValue, $endValue, $startRadius, $endRadius = -1, $fillColor = Null, $edgeColor = -1) {
if (is_null($fillColor))
$this->addZone2($startValue, $endValue, $startRadius, $endRadius);
else
callmethod("AngularAxis.addZone", $this->ptr, $startValue, $endValue, $startRadius, $endRadius, $fillColor, $edgeColor);
}
function addZone2($startValue, $endValue, $fillColor, $edgeColor = -1) {
callmethod("AngularAxis.addZone2", $this->ptr, $startValue, $endValue, $fillColor, $edgeColor);
}
function getCoor($v) {
return callmethod("AngularAxis.getCoor", $this->ptr, $v);
}
function getTicks() {
return callmethod("AngularAxis.getTicks", $this->ptr);
}
function getLabel($i) {
return callmethod("AngularAxis.getLabel", $this->ptr, $i);
}
function getAxisImageMap($noOfSegments, $mapWidth, $url, $queryFormat = "", $extraAttr = "", $offsetX = 0, $offsetY = 0) {
return callmethod("AngularAxis.getAxisImageMap", $this->ptr, $noOfSegments, $mapWidth, $url, $queryFormat, $extraAttr, $offsetX, $offsetY);
}
function getHTMLImageMap($url, $queryFormat = "", $extraAttr = "", $offsetX = 0, $offsetY = 0) {
return callmethod("AngularAxis.getHTMLImageMap", $this->ptr, $url, $queryFormat, $extraAttr, $offsetX, $offsetY);
}
}
#///////////////////////////////////////////////////////////////////////////////////
#// bindings to layer.h
#///////////////////////////////////////////////////////////////////////////////////
class DataSet {
function DataSet($ptr) {
$this->ptr = $ptr;
}
function setData($data) {
callmethod("DataSet.setData", $this->ptr, $data);
}
function setDataName($name) {
callmethod("DataSet.setDataName", $this->ptr, $name);
}
function setDataColor($dataColor, $edgeColor = -1, $shadowColor = -1, $shadowEdgeColor = -1) {
callmethod("DataSet.setDataColor", $this->ptr, $dataColor, $edgeColor, $shadowColor, $shadowEdgeColor);
}
function setUseYAxis2($b = 1) {
callmethod("DataSet.setUseYAxis2", $this->ptr, $b);
}
function setUseYAxis($a) {
callmethod("DataSet.setUseYAxis", $this->ptr, $a->ptr);
}
function setLineWidth($w) {
callmethod("DataSet.setLineWidth", $this->ptr, $w);
}
function setDataLabelFormat($formatString) {
callmethod("DataSet.setDataLabelFormat", $this->ptr, $formatString);
}
function setDataLabelStyle($font = "", $fontSize = 8, $fontColor = TextColor, $fontAngle = 0) {
return new TextBox(callmethod("DataSet.setDataLabelStyle", $this->ptr, $font, $fontSize, $fontColor, $fontAngle));
}
function setDataSymbol($symbol, $size = Null, $fillColor = -1, $edgeColor = -1, $lineWidth = 1) {
if (is_array($symbol)) {
if (is_null($size))
$size = 11;
$this->setDataSymbol4($symbol, $size, $fillColor, $edgeColor);
return;
}
if (!is_numeric($symbol))
return $this->setDataSymbol2($symbol);
if (is_null($size))
$size = 5;
callmethod("DataSet.setDataSymbol", $this->ptr, $symbol, $size, $fillColor, $edgeColor, $lineWidth);
}
function setDataSymbol2($image) {
if (!is_string($image))
return $this->setDataSymbol3($image);
callmethod("DataSet.setDataSymbol2", $this->ptr, $image);
}
function setDataSymbol3($image) {
callmethod("DataSet.setDataSymbol3", $this->ptr, $image->ptr);
}
function setDataSymbol4($polygon, $size = 11, $fillColor = -1, $edgeColor = -1) {
callmethod("DataSet.setDataSymbol4", $this->ptr, $polygon, $size, $fillColor, $edgeColor);
}
}
class Layer {
function Layer($ptr) {
$this->ptr = $ptr;
}
function setSize($x, $y, $w, $h, $swapXY = 0) {
callmethod("Layer.setSize", $this->ptr, $x, $y, $w, $h, $swapXY);
}
function setBorderColor($color, $raisedEffect = 0) {
callmethod("Layer.setBorderColor", $this->ptr, $color, $raisedEffect);
}
function set3D($d = -1, $zGap = 0) {
callmethod("Layer.set3D", $this->ptr, $d, $zGap);
}
function set3D2($xDepth, $yDepth, $xGap, $yGap) {
callmethod("Layer.set3D2", $this->ptr, $xDepth, $yDepth, $xGap, $yGap);
}
function setLineWidth($w) {
callmethod("Layer.setLineWidth", $this->ptr, $w);
}
function setLegend($m) {
callmethod("Layer.setLegend", $this->ptr, $m);
}
function setLegendOrder($dataSetOrder, $layerOrder = -1) {
callmethod("Layer.setLegendOrder", $this->ptr, $dataSetOrder, $layerOrder);
}
function setDataCombineMethod($m) {
callmethod("Layer.setDataCombineMethod", $this->ptr, $m);
}
function addDataSet($data, $color = -1, $name = "") {
return new DataSet(callmethod("Layer.addDataSet", $this->ptr, $data, $color, $name));
}
function addDataGroup($name = "") {
callmethod("Layer.addDataGroup", $this->ptr, $name);
}
function addExtraField($texts) {
callmethod("Layer.addExtraField", $this->ptr, $texts);
}
function addExtraField2($numbers) {
callmethod("Layer.addExtraField2", $this->ptr, $numbers);
}
function getDataSet($dataSet) {
return new DataSet(callmethod("Layer.getDataSet", $this->ptr, $dataSet));
}
function setUseYAxis2($b = 1) {
callmethod("Layer.setUseYAxis2", $this->ptr, $b);
}
function setUseYAxis($a) {
callmethod("Layer.setUseYAxis", $this->ptr, $a->ptr);
}
function setXData($xData, $maxValue = Null) {
if (is_null($maxValue))
callmethod("Layer.setXData", $this->ptr, $xData);
else
$this->setXData2($xData, $maxValue);
}
function setXData2($minValue, $maxValue) {
callmethod("Layer.setXData2", $this->ptr, $minValue, $maxValue);
}
function alignLayer($layer, $dataSet) {
callmethod("Layer.alignLayer", $this->ptr, $layer->ptr, $dataSet);
}
function getMinX() {
return callmethod("Layer.getMinX", $this->ptr);
}
function getMaxX() {
return callmethod("Layer.getMaxX", $this->ptr);
}
function getMaxY($yAxis = 1) {
return callmethod("Layer.getMaxY", $this->ptr, $yAxis);
}
function getMinY($yAxis = 1) {
return callmethod("Layer.getMinY", $this->ptr, $yAxis);
}
function getDepthX() {
return callmethod("Layer.getDepthX", $this->ptr);
}
function getDepthY() {
return callmethod("Layer.getDepthY", $this->ptr);
}
function getXCoor($v) {
return callmethod("Layer.getXCoor", $this->ptr, $v);
}
function getYCoor($v, $yAxis = 1) {
if (is_object($yAxis))
return callmethod("Layer.getYCoor2", $this->ptr, $v, $yAxis->ptr);
else
return callmethod("Layer.getYCoor", $this->ptr, $v, $yAxis);
}
function xZoneColor($threshold, $belowColor, $aboveColor) {
return callmethod("Layer.xZoneColor", $this->ptr, $threshold, $belowColor, $aboveColor);
}
function yZoneColor($threshold, $belowColor, $aboveColor, $yAxis = 1) {
if (is_object($yAxis))
return callmethod("Layer.yZoneColor2", $this->ptr, $threshold, $belowColor, $aboveColor, $yAxis->ptr);
else
return callmethod("Layer.yZoneColor", $this->ptr, $threshold, $belowColor, $aboveColor, $yAxis);
}
function setDataLabelFormat($formatString) {
callmethod("Layer.setDataLabelFormat", $this->ptr, $formatString);
}
function setDataLabelStyle($font = "", $fontSize = 8, $fontColor = TextColor, $fontAngle = 0) {
return new TextBox(callmethod("Layer.setDataLabelStyle", $this->ptr, $font, $fontSize, $fontColor, $fontAngle));
}
function setAggregateLabelFormat($formatString) {
callmethod("Layer.setAggregateLabelFormat", $this->ptr, $formatString);
}
function setAggregateLabelStyle($font = "", $fontSize = 8, $fontColor = TextColor, $fontAngle = 0) {
return new TextBox(callmethod("Layer.setAggregateLabelStyle", $this->ptr, $font, $fontSize, $fontColor, $fontAngle));
}
function addCustomDataLabel($dataSet, $dataItem, $label, $font = "", $fontSize = 8, $fontColor = TextColor, $fontAngle = 0) {
return new TextBox(callmethod("Layer.addCustomDataLabel", $this->ptr, $dataSet, $dataItem, $label, $font, $fontSize, $fontColor, $fontAngle));
}
function addCustomAggregateLabel($dataItem, $label, $font = "", $fontSize = 8, $fontColor = TextColor, $fontAngle = 0) {
return new TextBox(callmethod("Layer.addCusto
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -