polar.theta Coordinate Type (GPL)

Syntax

polar.theta(<function>, <coord>)

<numeric>. A numeric value indicating the dimension. This is optional and required only when polar.theta is not the first or innermost dimension. Otherwise, it is assumed to be the first dimension. See the topic dim Function (GPL) for more information.

<function>. One or more valid functions. These are optional.

<coord>. A valid coordinate type or transformation function. This is optional.

Description

Creates a polar.theta coordinate system, which is the coordinate system for creating pie charts. polar.theta differs from the polar coordinate system in that it is one dimensional. This is the dimension for the theta angle.

Examples

Figure 1. Example: Pie chart
COORD: polar.theta()
ELEMENT: interval.stack(position(summary.count()), color(jobcat))