Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 1774 lines (74 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: Chart  - X-Ref

writeChart(\PhpOffice\PhpSpreadsheet\Chart\Chart $chart, $calculateCellValues = true)   X-Ref
Write charts to XML format.

param: mixed $calculateCellValues
return: string XML Output

writeView3D(XMLWriter $objWriter, ?int $value, string $tag, bool $surface2D, int $default = 0)   X-Ref
No description

writeTitle(XMLWriter $objWriter, ?Title $title = null)   X-Ref
Write Chart Title.


writeLegend(XMLWriter $objWriter, ?Legend $legend = null)   X-Ref
Write Chart Legend.


writePlotArea(XMLWriter $objWriter, ?PlotArea $plotArea, ?Title $xAxisLabel = null, ?Title $yAxisLabel = null, ?Axis $xAxis = null, ?Axis $yAxis = null)   X-Ref
Write Chart Plot Area.


writeDataLabelsBool(XMLWriter $objWriter, string $name, ?bool $value)   X-Ref
No description

writeDataLabels(XMLWriter $objWriter, ?Layout $chartLayout = null)   X-Ref
Write Data Labels.


writeCategoryAxis(XMLWriter $objWriter, ?Title $xAxisLabel, $id1, $id2, $isMultiLevelSeries, Axis $yAxis)   X-Ref
Write Category Axis.

param: string $id1
param: string $id2
param: bool $isMultiLevelSeries

writeValueAxis(XMLWriter $objWriter, ?Title $yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, Axis $xAxis)   X-Ref
Write Value Axis.

param: null|string $groupType Chart type
param: string $id1
param: string $id2
param: bool $isMultiLevelSeries

writeSerAxis(XMLWriter $objWriter, string $id2, string $id3)   X-Ref
Write Ser Axis, for Surface chart.


getChartType(PlotArea $plotArea)   X-Ref
Get the data series type(s) for a chart plot series.

return: string[]

writePlotSeriesValuesElement(XMLWriter $objWriter, int $val, ?ChartColor $fillColor)   X-Ref
Method writing plot series values.


writePlotGroup(?DataSeries $plotGroup, string $groupType, XMLWriter $objWriter, &$catIsMultiLevelSeries, &$valIsMultiLevelSeries, &$plotGroupingType)   X-Ref
Write Plot Group (series of related plots).

param: string $groupType Type of plot for dataseries
param: bool $catIsMultiLevelSeries Is category a multi-series category
param: bool $valIsMultiLevelSeries Is value set a multi-series set
param: string $plotGroupingType Type of grouping for multi-series values

writePlotSeriesLabel(?DataSeriesValues $plotSeriesLabel, XMLWriter $objWriter)   X-Ref
Write Plot Series Label.


writePlotSeriesValues(?DataSeriesValues $plotSeriesValues, XMLWriter $objWriter, $groupType, $dataType = 'str')   X-Ref
Write Plot Series Values.

param: string $groupType Type of plot for dataseries
param: string $dataType Datatype of series values

writeBubbles(?DataSeriesValues $plotSeriesValues, XMLWriter $objWriter)   X-Ref
Write Bubble Chart Details.


writeLayout(XMLWriter $objWriter, ?Layout $layout = null)   X-Ref
Write Layout.


writeAlternateContent(XMLWriter $objWriter)   X-Ref
Write Alternate Content block.


writePrintSettings(XMLWriter $objWriter)   X-Ref
Write Printer Settings.


writeEffects(XMLWriter $objWriter, Properties $yAxis)   X-Ref
No description

writeShadow(XMLWriter $objWriter, Properties $xAxis)   X-Ref
No description

writeGlow(XMLWriter $objWriter, Properties $yAxis)   X-Ref
No description

writeSoftEdge(XMLWriter $objWriter, Properties $yAxis)   X-Ref
No description

writeLineStyles(XMLWriter $objWriter, Properties $gridlines, bool $noFill = false)   X-Ref
No description

writeNotEmpty(XMLWriter $objWriter, string $name, ?string $value)   X-Ref
No description

writeColor(XMLWriter $objWriter, ChartColor $chartColor, bool $solidFill = true)   X-Ref
No description