Stack¶
- computes stacked layout
- For example, stacked bar chart
Parameters¶
sort
- The sort order of data in each stack.
field
- The field to stack. If no field is defined, a constant value of one is assumed.
as
Required- Fields to write the stacked values.
- Default:
["y0", "y1"]
offset
- How to offset the values in a stack.
"zero"
(default) starts stacking at 0."center"
centers the values around zero."normalize"
computes intra-stack percentages and normalizes the values to the range of[0, 1]
. groupby
Required- The fields to be used for forming groups for different stacks.
Example¶
{ "type": "stack", "groupby": ["chrom", "startpos"], "sort": { "field": "Role in Cancer" }, "offset": "normalize" }
TODO: Explanation