diff --git a/examples/output/pie-chart.svg b/examples/output/pie-chart.svg
index e8f4d9d..5046b1d 100644
--- a/examples/output/pie-chart.svg
+++ b/examples/output/pie-chart.svg
@@ -1,7 +1,8 @@
\ No newline at end of file
diff --git a/src/Pie/PieChart.php b/src/Pie/PieChart.php
index dfd0147..91889b3 100644
--- a/src/Pie/PieChart.php
+++ b/src/Pie/PieChart.php
@@ -3,6 +3,7 @@
namespace Maantje\Charts\Pie;
use Closure;
+use Maantje\Charts\SVG\Rect;
class PieChart
{
@@ -14,6 +15,9 @@ class PieChart
public function __construct(
private readonly int $size = 400,
private readonly array $slices = [],
+ public ?string $background = 'white',
+ public int $fontSize = 14,
+ public string $fontFamily = 'arial',
?Closure $formatter = null
) {
$this->formatter = $formatter ?? fn (string $label, float $percentage) => "$label - $percentage%";
@@ -22,7 +26,8 @@ public function __construct(
public function render(): string
{
return <<