Skip to content

Commit 26ea615

Browse files
authored
fix stack fill example (#263)
1 parent 953f673 commit 26ea615

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/syntax/layer/type/area.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ DRAW area
6767
SETTING position => 'identity', opacity => 0.5
6868
```
6969

70-
When `position => 'stack_fill'` we're plotting stacked proportions. These only make sense if every series is measured in the same absolute unit. (Wind and temperature have different units and the temperature is not absolute.)
70+
Whith the default `position => 'stack'` we can normalise the total so that each stack totals to the same value. These only make sense if every series is measured in the same absolute unit. (Wind and temperature have different units and the temperature is not absolute.)
7171

7272
```{ggsql}
7373
VISUALISE Date AS x, Value AS y, Series AS colour FROM long_airquality
7474
DRAW area
75-
SETTING position => 'fill'
75+
SETTING total => 100
7676
```
7777

7878
An alternative is to center the stacks to create a steamgraph

0 commit comments

Comments
 (0)