Create a dash line color.
A dash line color is a dynamic color that switches on and off periodically. When it is used to draw a line, the line will appear as a dash line.
The style of the dash line is defined by a pattern code, which is a 4-byte integer. A value of PPQQRRSS (in hex) means the first PP pixels are turned on, followed by QQ pixels turned off, followed by RR pixels turned on, followed by SS pixels turned off, and then restart from PP again.
ChartDirector comes from several predefined constants for common dash line patterns.
Name | Value (in Hex) | Dash Line Style |
DashLine | 00000505 | |
DotLine | 00000202 | |
DotDashLine | 05050205 | |
AltDashLine | 0A050505 | |
Return a 32-bit integer acting as a handle to the dash line color. The handle can be used in any ChartDirector API that expects a color as an argument.
© 2004 Advanced Software Engineering Limited. All rights reserved.
g="10">© 2004 Advanced Software Engineering Limited. All rights reserved.
bels. In this example, the labels must be Jan - Dec.
$labels = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
"Sept", "Oct", "Nov", "Dec");
$c->xAxis->setLabels($labels);
#Set the x-axis width to 2 pixels
$c->xAxis->setWidth(2);
#Set the y axis title
$c->yAxis->setTitle("USD (K)");
#Set the y-axis width to 2 pixels
$c->yAxis->setWidth(2);
#Output the chart
header("Content-type: image/png");
print($c->makeChart2(PNG));
?>© 2004 Advanced Software Engineering Limited. All rights reserved.
ved using © 2004 Advanced Software Engineering Limited. All rights reserved.
01', '959', '1018', '1102');