Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

(no description)

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

Defines 1 class


Class: DataSeries  - X-Ref

__construct($plotType = null, $plotGrouping = null, array $plotOrder = [], array $plotLabel = [], array $plotCategory = [], array $plotValues = [], $plotDirection = null, $smoothLine = false, $plotStyle = null)   X-Ref
Create a new DataSeries.

param: null|mixed $plotType
param: null|mixed $plotGrouping
param: int[] $plotOrder
param: DataSeriesValues[] $plotLabel
param: DataSeriesValues[] $plotCategory
param: DataSeriesValues[] $plotValues
param: null|string $plotDirection
param: bool $smoothLine
param: null|string $plotStyle

getPlotType()   X-Ref
Get Plot Type.

return: string

setPlotType($plotType)   X-Ref
Set Plot Type.

param: string $plotType
return: DataSeries

getPlotGrouping()   X-Ref
Get Plot Grouping Type.

return: string

setPlotGrouping($groupingType)   X-Ref
Set Plot Grouping Type.

param: string $groupingType
return: DataSeries

getPlotDirection()   X-Ref
Get Plot Direction.

return: string

setPlotDirection($plotDirection)   X-Ref
Set Plot Direction.

param: string $plotDirection
return: DataSeries

getPlotOrder()   X-Ref
Get Plot Order.

return: int[]

getPlotLabels()   X-Ref
Get Plot Labels.

return: array of DataSeriesValues

getPlotLabelByIndex($index)   X-Ref
Get Plot Label by Index.

param: mixed $index
return: DataSeriesValues

getPlotCategories()   X-Ref
Get Plot Categories.

return: array of DataSeriesValues

getPlotCategoryByIndex($index)   X-Ref
Get Plot Category by Index.

param: mixed $index
return: DataSeriesValues

getPlotStyle()   X-Ref
Get Plot Style.

return: null|string

setPlotStyle($plotStyle)   X-Ref
Set Plot Style.

param: null|string $plotStyle
return: DataSeries

getPlotValues()   X-Ref
Get Plot Values.

return: array of DataSeriesValues

getPlotValuesByIndex($index)   X-Ref
Get Plot Values by Index.

param: mixed $index
return: DataSeriesValues

getPlotSeriesCount()   X-Ref
Get Number of Plot Series.

return: int

getSmoothLine()   X-Ref
Get Smooth Line.

return: bool

setSmoothLine($smoothLine)   X-Ref
Set Smooth Line.

param: bool $smoothLine
return: DataSeries

refresh(Worksheet $worksheet)   X-Ref
No description