Skip to content

Commit

Permalink
Merge pull request #2 from GastonGelhorn/master
Browse files Browse the repository at this point in the history
allow mixed datalabels
  • Loading branch information
GastonGelhorn authored Oct 19, 2023
2 parents ba7ebc4 + 534b12a commit 4e648ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ChartGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function createChart(string $type, int $width, int $height, array $datase
*
* @return \Intervention\Image\Image|string|null
*/
public function createMixedChart(string $title, int $width, int $height, array $datasets, bool $asSVG = false)
public function createMixedChart(string $title, int $width, int $height, array $datasets, bool $asSVG = false, bool $mixedDataLabels = false)
{
if (config('chart-generator.url')) {
$request = Http::withHeaders([
Expand All @@ -79,6 +79,7 @@ public function createMixedChart(string $title, int $width, int $height, array $
'options' => [
'title' => $title,
'asSVG' => $asSVG,
'showMixedLabels' => $mixedDataLabels,
],
'format' => 'buffer',
]);
Expand Down

0 comments on commit 4e648ad

Please sign in to comment.