app/Module/StatisticsChartModule.php
private function fillYData($x, $z, $value, array $x_axis, array $z_axis, array &$ydata): void
    {
        $x = $this->findAxisEntry($x, $x_axis);
        $z = $this->findAxisEntry($z, $z_axis);

        if (!array_key_exists($z, $z_axis)) {
            foreach (array_keys($z_axis) as $key) {
                if ($value <= $key) {
                    $z = $key;
                    break;
                }
            }
        }

        // Add the value to the appropriate data point.
        $ydata[$z][$x] = ($ydata[$z][$x] ?? 0) + $value;
    }
private function fillYData($x, $z, $value, array $x_axis, array $z_axis, array &$ydata): void
    {
        $x = $this->findAxisEntry($x, $x_axis);
        $z = $this->findAxisEntry($z, $z_axis);

        if (!array_key_exists($z, $z_axis)) {
            foreach (array_keys($z_axis) as $key) {
                if ($value <= $key) {
                    $z = $key;
                    break;
                }
            }
        }

        // Add the value to the appropriate data point.
        $ydata[$z][$x] = ($ydata[$z][$x] ?? 0) + $value;
    }
private function fillYData ( $ x , $ z , $ value , array $ x_axis , array $ z_axis , array & $ ydata ) : void { $ x = $ this -> findAxisEntry ( $ x , $ x_axis ) ; $ z = $ this -> findAxisEntry ( $ z , $ z_axis ) ; if ( ! array_key_exists ( $ z , $ z_axis ) ) { foreach ( array_keys ( $ z_axis ) as $ key ) { if ( $ value <= $ key ) { $ z = $ key ; break ; } } } // Add the value to the appropriate data point. $ ydata [ $ z ] [ $ x ] = ( $ ydata [ $ z ] [ $ x ] ?? 0 ) + $ value ; }
Calculate the Y axis.

@param int|string $x
@param int|string $z
@param int|string $value
@param array      $x_axis
@param array      $z_axis
@param int[][]    $ydata

@return void
Calculate the Y axis .