For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pie

Pie charts show the relative contribution of values in relationship to the whole

Basic Pie Chart

-- @chart: pie
-- @title: Pie - Basic Pie Chart
-- @subtitle: Pie chart of sales won by channel
SELECT
	channel,
	count(*) as TotalSales
FROM sales
WHERE status = 'Won'
GROUP BY channel
ORDER BY TotalSales DESC;
An example pie chart
CHANNEL
TOTALSALES

search

66.0

coldcall

37.0

event

112.0

referral

243.0

pr_ad

21.0

Last updated