@stacking-mode
Whether the stacking for the chart is shown as 100% of the total or none
Quick Reference
-- @stacking-mode: percentvalid Values
Full Example
-- @chart: area
-- @title: Stacking-mode - 100% normalizing a stacked chart
-- @groups: Month, Channel
-- @subtitle: An example area chart that is 100% stacked
-- @formats: currency
-- @series: Sales
-- @stacks: Channel
-- @stacking-mode: percent
SELECT
TRUNC(date_closed, 'MONTH') as Month,
Channel,
sum(amount) as Sales
FROM sales
GROUP BY TRUNC(date_closed, 'MONTH'), Channel
ORDER BY TRUNC(date_closed, 'MONTH') ASC;
MONTH
CHANNEL
SALES
Use Cases
Last updated