# Code function categorical plot Use a [Function](../../functions/overview/index.md) to create a categorical chart (bar, line, scatter) in Quiver. Configuring a code function categorical plot requires writing a function that returns either a `TwoDimensionalAggregation` or `ThreeDimensionalAggregation`. The function should be the same as the one used for a [function-backed workshop chart layer](../../workshop/widgets-chart/index.md#function-aggregations-function-backed-layers). ## Input type Object set, single object ## Output type Categorical chart ## See also [Categorical formula plot](../card-categorical-formula-plot/index.md) ## Usage information | Functionality | Availability | | --- | --- | | [Standard Quiver card](../core-concepts/index.md#cards) | Supported | | [Transform table transform](../cards-transform-table/index.md) | Unsupported |