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]

(no description)

File Size: 419 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: $this

getPlotGrouping()   X-Ref
Get Plot Grouping Type.

return: string

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

param: string $groupingType
return: $this

getPlotDirection()   X-Ref
Get Plot Direction.

return: string

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

param: string $plotDirection
return: $this

getPlotOrder()   X-Ref
Get Plot Order.

return: int[]

getPlotLabels()   X-Ref
Get Plot Labels.

return: DataSeriesValues[]

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

param: mixed $index
return: DataSeriesValues|false

getPlotCategories()   X-Ref
Get Plot Categories.

return: DataSeriesValues[]

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

param: mixed $index
return: DataSeriesValues|false

getPlotStyle()   X-Ref
Get Plot Style.

return: null|string

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

param: null|string $plotStyle
return: $this

getPlotValues()   X-Ref
Get Plot Values.

return: DataSeriesValues[]

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

param: mixed $index
return: DataSeriesValues|false

getPlotBubbleSizes()   X-Ref
Get Plot Bubble Sizes.

return: DataSeriesValues[]

setPlotBubbleSizes(array $plotBubbleSizes)   X-Ref
Set Plot Bubble Sizes.

param: DataSeriesValues[] $plotBubbleSizes

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: $this

refresh(Worksheet $worksheet)   X-Ref
No description