पेज · Laravilt
Bar Chart
Vertical, horizontal and stacked bar charts.
Basic usage
php
Horizontal and stacked
php
Styling
php
Methods
| Method | Description |
|---|---|
make(array $labels = [], array $datasets = []) | Create the chart (static) |
horizontal(bool $condition = true) | Horizontal bars |
stacked(bool $condition = true) | Stack datasets |
showGrid(bool $condition = true) | Show grid lines |
barThickness(int $thickness) | Bar thickness in pixels |
data(array $data) | Set labels and datasets directly |
options(array $options) | Chart.js options (replaces options set by the helpers) |
height(int $height) | Height in pixels |
plus heading(), description(), polling() ... | See shared methods |