Skip to content

Commit 6ba2015

Browse files
authored
Add faceting section to gallery for pie charts section (#322)
Added section on faceting pie charts with example code.
1 parent f8623a2 commit 6ba2015

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

doc/gallery/examples/pie-chart.qmd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,18 @@ VISUALISE island AS fill FROM ggsql:penguins
9898
PROJECT TO polar SETTING start => -90, end => 90
9999
SCALE angle SETTING expand => 0
100100
```
101+
102+
103+
### Faceting pie charts
104+
105+
When faceting, you will typically want to pies to be whole, which requires the `SETTING free => 'angle'` specification.
106+
107+
```{ggsql}
108+
VISUALISE island AS fill FROM ggsql:penguins
109+
DRAW bar
110+
PROJECT TO polar
111+
FACET species SETTING free => 'angle'
112+
```
113+
114+
115+

0 commit comments

Comments
 (0)