@category
Defines the column from the result set that will serve as the primary xAxis category or pie chart category.
Quick Reference
-- @category: MonthValid Values
Full Example
-- @chart: Line
-- @title: Line - Sales by Month
-- @subtitle: An example line chart showing sales by month
-- @category: Month
-- @formats: currency
SELECT
TRUNC(date_closed, 'MONTH') as Month,
sum(amount) as Sales
FROM sales
GROUP BY TRUNC(date_closed, 'MONTH')
ORDER BY TRUNC(date_closed, 'MONTH') ASC
Use Cases
Last updated
