PHPExcel-Grafikdesign (Rahmen, Grafikfarbe, innere Position der Grafik)
Ich benutze PHPExcel, um Excel-Tabellen mit mehreren Diagrammen zu erstellen, und ich versuche, sie anzupassen. Ich habe nur noch 3 Probleme ungelöst: 1. Ich möchte, dass die Grafik keinen Rand hat. 2. Ich möchte die Farbe der Linien des Graphen ändern. 3. Ich möchte die Position des Diagramms innerhalb des Diagrammbereichs ändern. wie im Moment ist dies die Art, wie ich Graphen erstelle:
$xAxisTickValues = $TruexAxisTickValues;
$series = new PHPExcel_Chart_DataSeries(
PHPExcel_Chart_DataSeries::TYPE_LINECHART, // plotType
PHPExcel_Chart_DataSeries::GROUPING_STANDARD, // plotGrouping
range(0, 10), // plotOrder
null, // plotLabel
$xAxisTickValues, // plotCategory
$values // plotValues
);
$series->setPlotDirection(PHPExcel_Chart_DataSeries::DIRECTION_COL);
$plotarea = new PHPExcel_Chart_PlotArea(null, array($series));
$chart = new PHPExcel_Chart(
'chart1', // name
null, // title
null, // legend
$plotarea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
null, // xAxisLabel
null // yAxisLabel
);
$chart->setTopLeftPosition('C5' );
$chart->setBottomRightPosition('J11' );
$sheet->addChart($chart);
Gibt es eine Möglichkeit zum Anpassen von Diagrammen?