logaxis.php
Back to Chart Graphics
setPlotArea(30, 10, 140, 130);
# Ise log scale axis if required
if ($chartIndex == 1) {
$c->yAxis->setLogScale3();
}
# Set the labels on the x axis
$c->xAxis->setLabels($labels);
# Add a color bar layer using the given data. Use a 1 pixel 3D border for the bars.
$c->addBarLayer3($data)->setBorderColor(-1, 1);
# Output the chart
$viewer->setChart($c, SVG);
# Include tool tip for the chart
$viewer->setImageMap($c->getHTMLImageMap("", "", "title='Mileage on {xLabel}: {value} miles'"));
}
# This example includes 2 charts
$viewers = array();
for ($i = 0; $i < 2; ++$i) {
$viewers[$i] = new WebChartViewer("chart$i");
createChart($viewers[$i], $i);
}
?>
Log Scale Axis
Log Scale Axis
renderHTML(), " ";
}
?>