surfacewireframe.php
Back to Chart Graphics
addTitle("5 x 5 Data Points\nStandard Shading", "Arial Bold", 12);
$c->setContourColor(0x80ffffff);
} else if ($chartIndex == 1) {
# Original data, spline interpolated to 40 x 40 for smoothness
$c->addTitle("5 x 5 Points - Spline Fitted to 40 x 40\nStandard Shading", "Arial Bold", 12);
$c->setContourColor(0x80ffffff);
$c->setInterpolation(40, 40);
} else if ($chartIndex == 2) {
# Rectangular wireframe of original data
$c->addTitle("5 x 5 Data Points\nRectangular Wireframe");
$c->setShadingMode(RectangularFrame);
} else if ($chartIndex == 3) {
# Rectangular wireframe of original data spline interpolated to 40 x 40
$c->addTitle("5 x 5 Points - Spline Fitted to 40 x 40\nRectangular Wireframe");
$c->setShadingMode(RectangularFrame);
$c->setInterpolation(40, 40);
} else if ($chartIndex == 4) {
# Triangular wireframe of original data
$c->addTitle("5 x 5 Data Points\nTriangular Wireframe");
$c->setShadingMode(TriangularFrame);
} else {
# Triangular wireframe of original data spline interpolated to 40 x 40
$c->addTitle("5 x 5 Points - Spline Fitted to 40 x 40\nTriangular Wireframe");
$c->setShadingMode(TriangularFrame);
$c->setInterpolation(40, 40);
}
# Set the center of the plot region at (200, 170), and set width x depth x height to 200 x 200 x
# 150 pixels
$c->setPlotRegion(200, 170, 200, 200, 150);
# Set the plot region wall thichness to 5 pixels
$c->setWallThickness(5);
# Set the elevation and rotation angles to 20 and 30 degrees
$c->setViewAngle(20, 30);
# Set the data to use to plot the chart
$c->setData($dataX, $dataY, $dataZ);
# Output the chart
$viewer->setChart($c, SVG);
}
# This example includes 6 charts
$viewers = array();
for ($i = 0; $i < 6; ++$i) {
$viewers[$i] = new WebChartViewer("chart$i");
createChart($viewers[$i], $i);
}
?>
Surface Wireframe
Surface Wireframe
renderHTML(), " ";
}
?>