Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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

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.