Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 613 Bytes

area.md

File metadata and controls

32 lines (24 loc) · 613 Bytes

Area Chart

Chart Variants

An area chart is generated by adding the --area flag to the artisan command lit:chart {name}.

php artisan lit:chart SalesProductsChart --area

Configuration

Which data is displayed in your chart is configured in the value method as shown below.

public function value($query)
{
    return $this->count($query);
}

Possible methods:

return $this->count($query);
return $this->average($query, 'price');
return $this->min($query, 'price');
return $this->max($query, 'price');
return $this->sum($query, 'price');