src/Classes/Echarts/Dataset.php
protected function getValues(array $labels)
    {
        if (in_array(strtolower($this->type), $this->specialDatasets)) {
            return Collection::make($this->values)
                ->map(function ($value, $key) use ($labels) {
                    return [
                        'name'  => $labels[$key],
                        'value' => $value,
                    ];
                })->toArray();
        }

        return $this->values;
    }
protected function getValues(array $labels)
    {
        if (in_array(strtolower($this->type), $this->specialDatasets)) {
            return Collection::make($this->values)
                ->map(function ($value, $key) use ($labels) {
                    return [
                        'name'  => $labels[$key],
                        'value' => $value,
                    ];
                })->toArray();
        }

        return $this->values;
    }
protected function getValues ( array $ labels ) { if ( in_array ( strtolower ( $ this -> type ) , $ this -> specialDatasets ) ) { return Collection :: make ( $ this -> values ) -> map ( function ( $ value , $ key ) use ( $ labels ) { return [ 'name' => $ labels [ $ key ] , 'value' => $ value , ] ; } ) -> toArray ( ) ; } return $ this -> values ; }
Get the formated values.

@param array $labels

@return array
Get the formated values .