Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/syntax/layer/type/area.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ DRAW area
SETTING position => 'identity', opacity => 0.5
```

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.)
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.)

```{ggsql}
VISUALISE Date AS x, Value AS y, Series AS colour FROM long_airquality
DRAW area
SETTING position => 'fill'
SETTING total => 100
```

An alternative is to center the stacks to create a steamgraph
Expand Down
Loading