You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/syntax/layer/type/area.qmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -67,12 +67,12 @@ DRAW area
67
67
SETTING position => 'identity', opacity => 0.5
68
68
```
69
69
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.)
71
71
72
72
```{ggsql}
73
73
VISUALISE Date AS x, Value AS y, Series AS colour FROM long_airquality
74
74
DRAW area
75
-
SETTING position => 'fill'
75
+
SETTING total => 100
76
76
```
77
77
78
78
An alternative is to center the stacks to create a steamgraph
0 commit comments