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]

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.