43             case self::DATA_POINTS:
    47             case self::DATA_LINES:
    68     public function setTicks($a_x, $a_y, 
bool $a_labeled = 
false): void
    70         $this->ticks = array(
"x" => $a_x, 
"y" => $a_y, 
"labeled" => $a_labeled);
    87         $this->integer_axis[
"y"] = $a_status;
    95         $this->integer_axis[
"x"] = $a_status;
   104             $labeled = (bool) $ticks[
"labeled"];
   105             unset($ticks[
"labeled"]);
   106             foreach ($ticks as $axis => $def) {
   107                 if (is_numeric($def) || is_array($def)) {
   108                     $a_options->{$axis . 
"axis"} = 
new stdClass();
   110                 if (is_numeric($def)) {
   111                     $a_options->{$axis . 
"axis"}->ticks = $def;
   112                 } elseif (is_array($def)) {
   113                     $a_options->{$axis . 
"axis"}->ticks = array();
   114                     foreach ($def as $idx => $value) {
   116                             $a_options->{$axis . 
"axis"}->ticks[] = array($idx, $value);
   118                             $a_options->{$axis . 
"axis"}->ticks[] = $value;
   126         if ($this->integer_axis[
"x"] && !isset($a_options->xaxis)) {
   127             $a_options->{
"xaxis"} = 
new stdClass();
   128             $a_options->{
"xaxis"}->tickDecimals = 0;
   130         if ($this->integer_axis[
"y"] && !isset($a_options->yaxis)) {
   131             $a_options->{
"yaxis"} = 
new stdClass();
   132             $a_options->{
"yaxis"}->tickDecimals = 0;
 
parseGlobalOptions(stdClass $a_options)
 
getDataInstance(int $a_type=null)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setXAxisToInteger(bool $a_status)
Restrict x-axis to integer values. 
 
setTicks($a_x, $a_y, bool $a_labeled=false)
Set ticks. 
 
__construct(string $a_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
isValidDataType(ilChartData $a_series)
 
setYAxisToInteger(bool $a_status)
Restrict y-axis to integer values. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...