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]

Chart axis.

Copyright: 2016 Frédéric Massart - FMCorz.net
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 197 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

chart_axis:: (14 methods):
  __construct()
  get_label()
  get_labels()
  get_max()
  get_min()
  get_position()
  get_stepsize()
  jsonSerialize()
  set_label()
  set_labels()
  set_max()
  set_min()
  set_position()
  set_stepsize()


Class: chart_axis  - X-Ref

Chart axis class.

__construct()   X-Ref
Constructor.

Must not take any argument.

get_label()   X-Ref
Get the label.

return: string

get_labels()   X-Ref
Get the labels.

return: string[]

get_max()   X-Ref
Get the max value.

return: float

get_min()   X-Ref
Get the min value.

return: float

get_position()   X-Ref
Get the axis position.

return: string

get_stepsize()   X-Ref
Get the step size.

return: float

jsonSerialize()   X-Ref
Serialize the object.

return: array

set_label($label)   X-Ref
Set the label.

param: string $label The label.

set_labels($labels)   X-Ref
Set the labels.

param: string[] $labels The labels.

set_max($max)   X-Ref
Set the max value.

param: float $max The max value.

set_min($min)   X-Ref
Set the min value.

param: float $min The min value.

set_position($position)   X-Ref
Set the position.

param: string $position Use constant self::POS_*.

set_stepsize($stepsize)   X-Ref
Set the step size.

param: float $stepsize The step size.