src/Charcoal/Admin/Widget/Graph/AbstractTimeGraphWidget.php
protected function fillRows(array $rows)
    {
        $row = [];
        $seriesOptions = $this->seriesOptions();
        foreach ($seriesOptions as $serieId => $serieOpts) {
            $row[$serieId] = '0';
        }

        $starts = clone($this->startDate());
        $ends = $this->endDate();
        while ($starts < $ends) {
            $x = $starts->format($this->dateFormat());
            if (!isset($rows[$x])) {
                $rows[$x] = $row;
            }
            $starts->add($this->dateInterval());
        }
        ksort($rows);
        return $rows;
    }
protected function fillRows(array $rows)
    {
        $row = [];
        $seriesOptions = $this->seriesOptions();
        foreach ($seriesOptions as $serieId => $serieOpts) {
            $row[$serieId] = '0';
        }

        $starts = clone($this->startDate());
        $ends = $this->endDate();
        while ($starts < $ends) {
            $x = $starts->format($this->dateFormat());
            if (!isset($rows[$x])) {
                $rows[$x] = $row;
            }
            $starts->add($this->dateInterval());
        }
        ksort($rows);
        return $rows;
    }
protected function fillRows ( array $ rows ) { $ row = [ ] ; $ seriesOptions = $ this -> seriesOptions ( ) ; foreach ( $ seriesOptions as $ serieId => $ serieOpts ) { $ row [ $ serieId ] = '0' ; } $ starts = clone ( $ this -> startDate ( ) ) ; $ ends = $ this -> endDate ( ) ; while ( $ starts < $ ends ) { $ x = $ starts -> format ( $ this -> dateFormat ( ) ) ; if ( ! isset ( $ rows [ $ x ] ) ) { $ rows [ $ x ] = $ row ; } $ starts -> add ( $ this -> dateInterval ( ) ) ; } ksort ( $ rows ) ; return $ rows ; }
Fill all rows with 0 value for all series, when it is unset.

@param array $rows The row structure to fill.
@return array
Fill all rows with 0 value for all series when it is unset .