本文整理汇总了PHP中LinePlot::SetFillColor方法的典型用法代码示例。如果您正苦于以下问题:PHP LinePlot::SetFillColor方法的具体用法?PHP LinePlot::SetFillColor怎么用?PHP LinePlot::SetFillColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LinePlot
的用法示例。
在下文中一共展示了LinePlot::SetFillColor方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: monthchart
function monthchart($xdata, $ydata, $title = 'Line Chart')
{
// Create the graph. These two calls are always required
$graph = new Graph(600, 250, "auto", 60);
$graph->img->SetAntiAliasing(false);
$graph->SetScale("textlin");
$graph->xaxis->SetTickLabels($xdata);
$graph->xgrid->SetColor('#E3E3E3');
$graph->legend->SetFrameWeight(1);
// Setup title
$graph->title->Set($title);
foreach ($ydata as $item) {
// Create the linear plot
if (count($item['values']) != count($xdata)) {
continue;
}
$lineplot = new LinePlot($item['values'], $xdata);
$lineplot->SetColor($item['color']);
if (count($ydata) == 1) {
$lineplot->SetFillColor($item['color']);
}
// Add the plot to the graph
$graph->Add($lineplot);
$lineplot->SetLegend($item['legend']);
}
return $graph;
}
示例2: buildGraph
/**
* @return Chart
*/
public function buildGraph()
{
require_once 'common/chart/Chart.class.php';
if ($this->error == NULL) {
if ($this->width == 0) {
$this->width = count($this->data) * self::WIDTH_PER_POINT + self::MARGIN;
}
if ($this->scale == GraphOnTrackersV5_Chart_CumulativeFlow::SCALE_DAY) {
foreach ($this->data as $date => $label) {
$dates[] = date('M-d', $date);
}
} else {
foreach ($this->data as $date => $label) {
$dates[] = date('M-Y', $date);
}
}
$this->graph = new Chart($this->width, $this->height);
$colors = $this->getColors();
$this->graph->SetScale("datlin");
$this->graph->title->Set($this->title);
$this->graph->xaxis->SetTickLabels($dates);
$this->graph->yaxis->scale->SetAutoMin(0);
if (is_null($this->description)) {
$this->description = "";
}
$this->graph->subtitle->Set($this->description);
$this->keys = array_keys($this->data[$this->start_date]);
$this->nbOpt = count($this->keys);
$this->stackDataCount();
$this->graph->ygrid->SetFill(true, '#F3FFFF@0.5', '#FFFFFF@0.5');
for ($i = $this->nbOpt - 1; $i >= 0; $i--) {
$lineData = array();
foreach ($this->data as $data => $row) {
$lineData[] = $row[$this->keys[$i]];
}
$line = new LinePlot($lineData);
$line->SetFillColor($colors[$this->keys[$i]]);
$line->SetColor('#000');
$line->SetLegend($this->keys[$i]);
$this->graph->Add($line);
}
try {
$legend_line_height = 20;
$graph_margin_bottom = 70;
$margin_size = $this->nbOpt * $legend_line_height + $graph_margin_bottom;
$this->graph->img->SetMargin(70, 30, 30, $margin_size);
} catch (Exception $e) {
// do nothing, JPGraph displays the error by itself
}
$this->graph->legend->SetAbsPos(0, $this->height, 'left', 'bottom');
} else {
$this->graph = $this->error;
}
return $this->graph;
}
示例3: Graph
}
// Graphing
$graph = new Graph(850, 350, 0, false);
$graph->SetShadow();
$graph->SetScale("textlin");
$graph->yaxis->SetTitleMargin(40);
$graph->img->SetMargin(60, 60, 30, 70);
$graph->title->Set("MCP Score Distribution");
$graph->xaxis->title->Set("Score (rounded)");
$graph->xaxis->SetTextLabelInterval($labelinterval);
$graph->xaxis->SetTickLabels($data_labels);
$graph->yaxis->title->Set("No. of messages");
$graph->legend->SetLayout(LEGEND_HOR);
$graph->legend->Pos(0.52, 0.87, 'center');
$bar1 = new LinePlot($data_count);
$bar1->SetFillColor('blue');
$graph->Add($bar1);
$graph->Stroke($filename);
}
// Creating the page
echo "<TABLE BORDER=\"0\" CELLPADDING=\"10\" CELLSPACING=\"0\" WIDTH=\"100%\">\n";
echo " <TR><TD ALIGN=\"CENTER\"><IMG SRC=\"" . IMAGES_DIR . MS_LOGO . "\" ALT=\"MailScanner Logo\"></TD></TR>";
echo " <TR>\n";
// Check Permissions to see if the file has been written and that apache to read it.
if (is_readable($filename)) {
echo " <TD ALIGN=\"CENTER\"><IMG SRC=\"" . $filename . "\" ALT=\"Graph\"></TD>";
} else {
echo "<TD ALIGN=\"CENTER\"> File isn't readable. Please make sure that " . CACHE_DIR . " is readable and writable by MailWatch.";
}
// Create the table
echo " </TR>\n";
示例4: time
// content="text/plain; charset=utf-8"
require_once 'jpgraph/jpgraph.php';
require_once 'jpgraph/jpgraph_line.php';
require_once 'jpgraph/jpgraph_date.php';
// Create a data set in range (50,70) and X-positions
DEFINE('NDATAPOINTS', 360);
DEFINE('SAMPLERATE', 240);
$start = time();
$end = $start + NDATAPOINTS * SAMPLERATE;
$data = array();
$xdata = array();
for ($i = 0; $i < NDATAPOINTS; ++$i) {
$data[$i] = rand(50, 70);
$xdata[$i] = $start + $i * SAMPLERATE;
}
// Create the new graph
$graph = new Graph(540, 300);
// Slightly larger than normal margins at the bottom to have room for
// the x-axis labels
$graph->SetMargin(40, 40, 30, 130);
// Fix the Y-scale to go between [0,100] and use date for the x-axis
$graph->SetScale('datlin', 0, 100);
$graph->title->Set("Example on Date scale");
// Set the angle for the labels to 90 degrees
$graph->xaxis->SetLabelAngle(90);
$line = new LinePlot($data, $xdata);
$line->SetLegend('Year 2005');
$line->SetFillColor('lightblue@0.5');
$graph->Add($line);
$graph->Stroke();
示例5: BarPlot
$graph->yaxis->SetTickSide(SIDE_LEFT);
$graph->y2axis->SetTickSide(SIDE_RIGHT);
$graph->y2axis->SetColor('black', 'blue');
$graph->y2axis->SetLabelFormat('%3d.0%%');
// Create a bar pot
$bplot = new BarPlot($data_freq);
// Create targets and alt texts for the image maps. One for each bar
// (In this example this is just "dummy" targets)
$targ = array("#1", "#2", "#3", "#4", "#5", "#6", "#7");
$alts = array("val=%d", "val=%d", "val=%d", "val=%d", "val=%d", "val=%d", "val=%d");
$bplot->SetCSIMTargets($targ, $alts);
// Create accumulative graph
$lplot = new LinePlot($data_accfreq);
// We want the line plot data point in the middle of the bars
$lplot->SetBarCenter();
// Use transperancy
$lplot->SetFillColor('lightblue@0.6');
$lplot->SetColor('blue@0.6');
//$lplot->SetColor('blue');
$graph->AddY2($lplot);
// Setup the bars
$bplot->SetFillColor("orange@0.2");
$bplot->SetValuePos('center');
$bplot->value->SetFormat("%d");
$bplot->value->SetFont(FF_ARIAL, FS_NORMAL, 9);
$bplot->value->Show();
// Add it to the graph
$graph->Add($bplot);
// Send back the HTML page which will call this script again
// to retrieve the image.
$graph->StrokeCSIM();
示例6: array
<?php
// content="text/plain; charset=utf-8"
require_once "jpgraph/jpgraph.php";
require_once "jpgraph/jpgraph_line.php";
$datay = array(1.23, 1.9, 1.6, 3.1, 3.4, 2.8, 2.1, 1.9);
$graph = new Graph(300, 200);
$graph->SetScale('textlin');
$graph->img->SetMargin(40, 40, 40, 40);
$graph->SetShadow();
$graph->title->Set("Example of filled line plot");
$graph->title->SetFont(FF_FONT1, FS_BOLD);
$p1 = new LinePlot($datay);
$p1->SetFillColor("orange");
$p1->mark->SetType(MARK_FILLEDCIRCLE);
$p1->mark->SetFillColor("red");
$p1->mark->SetWidth(4);
$graph->Add($p1);
$graph->Stroke();
示例7: LinePlot
$lineplot = new LinePlot($tot_data, $ticks);
$lineplot->SetLegend('Traffic total');
$lineplot->SetColor('#d5d5d5');
$lineplot->SetFillColor('#d5d5d5@0.5');
// $lineplot2 = new LinePlot($tot_data_inv, $ticks);
// $lineplot2->SetColor("#d5d5d5");
// $lineplot2->SetFillColor("#d5d5d5@0.5");
$lineplot_in = new LinePlot($in_data, $ticks);
$lineplot_in->SetLegend('Traffic In');
$lineplot_in->SetColor('darkgreen');
$lineplot_in->SetFillColor('lightgreen@0.4');
$lineplot_in->SetWeight(1);
$lineplot_out = new LinePlot($out_data_inv, $ticks);
$lineplot_out->SetLegend('Traffic Out');
$lineplot_out->SetColor('darkblue');
$lineplot_out->SetFillColor('lightblue@0.4');
$lineplot_out->SetWeight(1);
if ($_GET['95th']) {
$lineplot_95th = new LinePlot($per_data, $ticks);
$lineplot_95th->SetColor('red');
}
if ($_GET['ave']) {
$lineplot_ave = new LinePlot($ave_data, $ticks);
$lineplot_ave->SetColor('red');
}
$graph->legend->SetLayout(LEGEND_HOR);
$graph->legend->Pos(0.52, 0.9, 'center');
$graph->Add($lineplot);
// $graph->Add($lineplot2);
$graph->Add($lineplot_in);
$graph->Add($lineplot_out);
示例8: Graph
$goal1[] = 50000;
// Create the graph. These two calls are always required
$graph = new Graph(600, 350, "auto");
$graph->SetScale("textlin", 0, $goal);
// Add a drop shadow
$graph->SetShadow();
// Adjust the margin a bit to make more room for titles
$top = 25;
$bottom = 85;
$left = 50;
$right = 25;
$graph->img->SetMargin($left, $right, $top, $bottom);
$graph->img->SetImgFormat('png');
$graph->img->SetAntiAliasing();
$goal1p = new LinePlot($goal1);
$goal1p->SetFillColor("#eeffee");
$graph->Add($goal1p);
// Create a bar pot
$bplot = new BarPlot(array_values($days));
$bplot->SetFillColor("#BBBBEE");
$bplot->value->Show();
$bplot->value->SetFont(FF_ARIAL, FS_NORMAL, 8);
$bplot->value->SetAngle(90);
$bplot->value->SetFormatCallback('number_format');
$graph->Add($bplot);
$txt = new Text("Average / Day: " . number_format($average));
$txt->SetColor("black");
$txt->SetFont(FF_ARIAL, FS_BOLD, 10);
$txt->SetPos(30, 295);
$graph->AddText($txt);
$txt = new Text("30 Day Expected: " . number_format($average * 30));
示例9: date
{
$aVal = date('Y-m-d H:i', $aVal);
}
// Apply this format to all time values in the data to prepare it to be display
array_walk($xdata, 'formatDate');
// Create the graph.
$graph = new Graph(600, 350);
$graph->title->Set('Accumulated values with specified X-axis scale');
$graph->SetScale('textlin');
// Setup margin color
$graph->SetMarginColor('green@0.95');
// Adjust the margin to make room for the X-labels
$graph->SetMargin(40, 30, 40, 120);
// Turn the tick marks out from the plot area
$graph->xaxis->SetTickSide(SIDE_BOTTOM);
$graph->yaxis->SetTickSide(SIDE_LEFT);
$p0 = new LinePlot($ydata[0]);
$p0->SetFillColor('sandybrown');
$p1 = new LinePlot($ydata[1]);
$p1->SetFillColor('lightblue');
$p2 = new LinePlot($ydata[2]);
$p2->SetFillColor('red');
$ap = new AccLinePlot(array($p0, $p1, $p2));
$graph->xaxis->SetTickLabels($xdata);
$graph->xaxis->SetTextLabelInterval(4);
// Add the plot to the graph
$graph->Add($ap);
// Set the angle for the labels to 90 degrees
$graph->xaxis->SetLabelAngle(90);
// Display the graph
$graph->Stroke();
示例10: CourbeParHeure
function CourbeParHeure($zoom = false)
{
$day = $_GET["DAY"];
if ($day == null) {
$day = date('Y-m-d');
}
@mkdir($_GET["BASEPATH"], 0755, true);
$f_name = "day-global-{$day}.png";
if ($zoom) {
$f_name = "day-global-{$day}-zoom.png";
}
$fileName = "{$_GET["BASEPATH"]}/{$f_name}";
if (is_file($fileName)) {
if (file_get_time_min($fileName) < 20) {
return "{$_GET["IMGPATH"]}/{$f_name}";
}
}
@unlink($fileName);
$q = new mysql();
$sql = "SELECT COUNT(ID) as tcount ,DATE_FORMAT(zDate,'%h') as thour \nFROM `mbx_con` WHERE DATE_FORMAT(zDate,'%Y-%m-%d')='{$day}' GROUP BY thour ORDER BY thour";
$results = $q->QUERY_SQL($sql, "artica_events");
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$ydata[] = $ligne["tcount"];
$xdata[] = $ligne["thour"];
}
if (count($ydata) < 2) {
$ydata[] = 1;
$xdata[] = date('d');
}
$width = 500;
$height = 200;
if ($zoom) {
$width = 720;
$height = 400;
}
$graph = new Graph($width, $height);
$graph->SetScale('textlin');
$graph->title->Set("Connexions numbers {$day}");
$graph->title->SetColor('white');
$graph->xaxis->title->Set('hours');
$graph->xaxis->SetTickLabels($xdata);
$graph->yaxis->title->Set('(connexions)');
$graph->SetBackgroundGradient('darkred:0.7', 'black', 2, BGRAD_MARGIN);
$graph->SetPlotGradient('black', 'darkred:0.8', 2);
$graph->xaxis->SetColor('lightgray');
$graph->yaxis->SetColor('lightgray');
$graph->xgrid->Show();
$lineplot = new LinePlot($ydata);
$lineplot->SetWeight(2);
$lineplot->SetColor('orange:0.9');
$lineplot->SetFillColor('white@0.7');
$lineplot->SetFillFromYMin();
$lineplot->SetWeight(2);
$lineplot->SetFilled(true);
$lineplot->SetFillFromYMin(true);
$graph->Add($lineplot);
$gdImgHandler = $graph->Stroke(_IMG_HANDLER);
$graph->img->Stream($fileName);
return "{$_GET["IMGPATH"]}/{$f_name}";
}
示例11: LinePlot
// Now set the tic positions
$graph->xaxis->SetMajTickPositions($tickPositions, $tickLabels);
// Use Times font
$graph->xaxis->SetFont(FF_TIMES, FS_NORMAL, 11);
$graph->yaxis->SetFont(FF_TIMES, FS_NORMAL, 9);
// Set colors for axis
$graph->xaxis->SetColor('lightgray');
$graph->yaxis->SetColor('lightgray');
// Add a X-grid
$graph->xgrid->Show();
// Show ticks outwards
$graph->xaxis->SetTickSide(SIDE_DOWN);
$graph->xaxis->SetLabelMargin(8);
$graph->yaxis->SetTickSide(SIDE_LEFT);
// Setup a filled y-grid
//$graph->ygrid->SetFill(true,'darkgray:1.55@0.7','darkgray:1.6@0.7');
$graph->ygrid->SetStyle('dotted');
$graph->xgrid->SetStyle('dashed');
// Create the plot line
$p1 = new LinePlot($datay, $datax);
$p1->SetWeight(2);
$p1->SetColor('orange:0.9');
$p1->SetFillColor('white@0.7');
$p1->SetFillFromYMin();
$graph->Add($p1);
// Output graph
$graph->Stroke();
?>
示例12: LinePlot
$graph->tabtitle->SetWidth(TABTITLE_WIDTHFULL);
// Enable X and Y Grid
$graph->xgrid->Show();
$graph->xgrid->SetColor('gray@0.5');
$graph->ygrid->SetColor('gray@0.5');
// Format the legend box
$graph->legend->SetColor('navy');
$graph->legend->SetFillColor('lightgreen');
$graph->legend->SetLineWeight(1);
$graph->legend->SetFont(FF_ARIAL, FS_BOLD, 8);
$graph->legend->SetShadow('gray@0.4', 3);
$graph->legend->SetAbsPos(15, 120, 'right', 'bottom');
// Create the line plots
$p1 = new LinePlot($datay1);
$p1->SetColor("red");
$p1->SetFillColor("yellow@0.5");
$p1->SetWeight(2);
$p1->mark->SetType(MARK_IMG_DIAMOND, 5, 0.6);
$p1->SetLegend('2006');
$graph->Add($p1);
$p2 = new LinePlot($datay2);
$p2->SetColor("darkgreen");
$p2->SetWeight(2);
$p2->SetLegend('2001');
$p2->mark->SetType(MARK_IMG_MBALL, 'red');
$graph->Add($p2);
// Add a vertical line at the end scale position '7'
$l1 = new PlotLine(VERTICAL, 7);
$graph->Add($l1);
// Output the graph
$graph->Stroke();
示例13: courbe_today
function courbe_today($domain)
{
$tpl = new templates();
$q = new mysql();
$dansguardian_events = "dansguardian_events_" . date('Ym');
$sql = "SELECT COUNT( ID ) AS tcount, sitename, DATE_FORMAT( zdate, '%H' ) AS thour , DATE_FORMAT( zdate, '%Y-%m-%d' ) AS tday\nFROM {$dansguardian_events}\nWHERE sitename = '{$domain}'\nGROUP BY thour , tday\nHAVING tday = DATE_FORMAT( NOW( ) , '%Y-%m-%d' )\nORDER BY thour";
$results = $q->QUERY_SQL($sql, "artica_events");
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$GLOBALS["stats-array-{$domain}"][] = "<tr>\n\t<td style='font-size:12px;font-weight:bold' nowrap>{$ligne["thour"]}:00</td>\n\t<td style='font-size:12px;font-weight:bold' nowrap>{$ligne["tcount"]} hits</td>\n\t</tr>\n\t";
$ydata[] = $ligne["tcount"];
$xdata[] = $ligne["hour"];
}
$f_name = "day-squid-{$domain}.png";
$fileName = "ressources/logs/{$f_name}";
if (is_file($fileName)) {
if (file_get_time_min($fileName) < 120) {
return $fileName;
}
}
$title = "{$domain} " . $tpl->_ENGINE_parse_body('{today}');
@unlink($fileName);
$width = 500;
$height = 200;
if ($zoom) {
$width = 720;
$height = 400;
}
JpGraphError::SetImageFlag(false);
$graph = new Graph($width, $height);
$graph->SetScale('textlin');
$graph->title->Set($title);
$graph->title->SetColor('white');
$graph->xaxis->title->Set('hours');
$graph->xaxis->SetTickLabels($xdata);
$graph->yaxis->title->Set('(hits number)');
$graph->yaxis->scale->SetGrace(10);
$graph->SetBackgroundGradient('darkred:0.7', 'black', 2, BGRAD_MARGIN);
$graph->SetPlotGradient('black', 'darkred:0.8', 2);
$graph->SetMargin(55, 20, 60, 20);
//$graph->img->SetMargin(50,30,30,100);
$graph->xaxis->SetColor('lightgray');
$graph->yaxis->SetColor('lightgray');
$graph->xgrid->Show();
$lineplot = new LinePlot($ydata);
$lineplot->SetWeight(2);
$lineplot->SetColor('orange:0.9');
$lineplot->SetFillColor('white@0.7');
$lineplot->SetFillFromYMin();
$lineplot->SetWeight(2);
$lineplot->SetFilled(true);
$lineplot->SetFillFromYMin(true);
$graph->Add($lineplot);
JpGraphError::SetImageFlag(false);
try {
$gdImgHandler = $graph->Stroke(_IMG_HANDLER);
} catch (JpGraphException $e) {
// .. do necessary cleanup
// Send back error message
// $e->Stroke();
}
$graph->img->Stream($fileName);
return $fileName;
}
示例14: BarPlot
$graph->ygrid->SetLineStyle('dashed');
$graph->ygrid->SetColor('gray');
$graph->xgrid->Show();
$graph->xgrid->SetLineStyle('dashed');
$graph->xgrid->SetColor('gray');
// Setup month as labels on the X-axis
$graph->xaxis->SetTickLabels($months);
$graph->xaxis->SetFont(FF_ARIAL, FS_NORMAL, 8);
$graph->xaxis->SetLabelAngle(45);
// Create a bar pot
$bplot = new BarPlot($ydata);
$bplot->SetWidth(0.6);
$fcol = '#440000';
$tcol = '#FF9090';
$bplot->SetFillGradient($fcol, $tcol, GRAD_LEFT_REFLECTION);
// Set line weigth to 0 so that there are no border
// around each bar
$bplot->SetWeight(0);
$graph->Add($bplot);
// Create filled line plot
$lplot = new LinePlot($ydata2);
$lplot->SetFillColor('skyblue@0.5');
$lplot->SetColor('navy@0.7');
$lplot->SetBarCenter();
$lplot->mark->SetType(MARK_SQUARE);
$lplot->mark->SetColor('blue@0.5');
$lplot->mark->SetFillColor('lightblue');
$lplot->mark->SetSize(6);
$graph->Add($lplot);
// .. and finally send it back to the browser
$graph->Stroke();
示例15: parse
function parse($input, $parser)
{
global $jpgraphMarkList;
$chart_type = split(",", $this->type);
$mark_type = split(",", $this->mark);
// retrieving data
$i = 0;
$max_row_count = -1;
foreach (split("\n", $input) as $line) {
// skip empty line or comments
if (preg_match("/^(\\s*)#.*\$|^(\\s*)\$/", $line)) {
continue;
}
$line_array = split($this->fieldsep, $line);
// if first loop => setting label and continue with next loop
if ($i == 0) {
$this->labels = $line_array;
$i++;
continue;
}
// Storing data
for ($j = 0; $j < count($line_array); $j++) {
$this->datay[$j][] = $line_array[$j];
}
// check data integrity
if ($max_row_count == -1) {
$max_row_count = count($line_array);
}
if ($max_row_count != count($line_array)) {
throw new Exception("Error while parsing '" . implode($this->fieldsep, $line_array) . "' : bad number of row.");
}
$i++;
}
$data_start = 0;
// if(x, y) curve => set datax with first set of datay
if ($this->islinear) {
$this->datax = $this->datay[0];
$data_start = 1;
if ($this->xistime) {
for ($i = 0; $i < count($this->datax); $i++) {
$this->datax[$i] = strtotime($this->datax[$i]);
}
}
}
// Setting default value for chart type array. by default : line.
// If only one type => applying same type for everybody
if (count($chart_type) == 0) {
$chart_type[0] = "line";
}
if (count($chart_type) != $max_row_count) {
$tmp_type = $chart_type[0];
$chart_type = array();
for ($i = count($chart_type); $i < $max_row_count; $i++) {
$chart_type[$i] = $tmp_type;
}
}
// same thing for mark
if (count($mark_type) == 0) {
$mark_type[0] = "line";
}
if (count($mark_type) != $max_row_count) {
$tmp_mark = $mark_type[0];
$mark_type = array();
for ($i = count($mark_type); $i < $max_row_count; $i++) {
$mark_type[$i] = $tmp_mark;
}
}
// Possibility to ignore data
$disable_row = array();
foreach (split(",", $this->disable) as $elt) {
$disable_row[$elt] = true;
}
// Creating data object
for ($i = $data_start; $i < count($this->datay); $i++) {
if (array_key_exists($i + 1, $disable_row) && $disable_row[$i + 1]) {
continue;
}
$show_plot = false;
switch ($chart_type[$i]) {
case "bar":
$plot = new BarPlot($this->datay[$i], $this->datax);
$plot->SetWidth($this->barwidth);
$plot->SetFillColor($this->color_list[$i % count($this->color_list)]);
break;
case "area":
$plot = new LinePlot($this->datay[$i], $this->datax);
$plot->SetColor("gray");
$plot->SetFillColor($this->color_list[$i % count($this->color_list)]);
$show_plot = true;
break;
default:
case "line":
$plot = new LinePlot($this->datay[$i], $this->datax);
$show_plot = true;
break;
}
if ($show_plot) {
$mark_id = $jpgraphMarkList[$mark_type[$i]];
if (!$mark_id) {
throw new JpgraphMWException("Unknown mark type(" . $mark_type[$i] . "). Possible values are: " . implode(", ", array_keys($jpgraphMarkList)));
//.........这里部分代码省略.........