You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can define the bar overlap within bars or columns clusters. It is defined in percent.
337
-
The default value is `100%` for stacked and `0%` for grouped bar charts. The value must be defined between -100 and 100.
338
-
339
-
When defining the bar grouping type, the default overlap values will be set. Any changes to the overlap must be made after setting the bar grouping type through `setBarGrouping`.
336
+
You can define the bar overlap within bar or column clusters. It is relatively defined as percentage of a bars width.
337
+
The default value is `100%` for stacked and `0%` for grouped bar charts. The value must be defined between `-100` and `100`.
340
338
341
-
```php
342
-
<?php
339
+
When setting the bar grouping type, the default overlap values will be set. Any change to the overlap must be made after setting the bar grouping type through `setBarGrouping`.
343
340
341
+
```php
344
342
$barChart = new Bar();
345
-
$barChart->setOverlapWidthPercent(-10);
343
+
// will set the overlap to the default value for grouped bars: 0
You can stack multiples series in a same chart. After adding multiples series, you can define the bar grouping with `setBarGrouping` method of AbstractTypeBar.
0 commit comments