piechart

piechart, tile type

The piechart tile displays a categorical breakdown. It expects one numeric vector and one group by clause.

Example

table T = with
  [| as Product, as Sales |]
  [| "Shirt", 120 |]
  [| "Hat", 80 |]
  [| "Shoes", 40 |]

show piechart "Sales per product" with
  sum(T.Sales)
  group by T.Product

This produces a chart with the following values:

Product Sales
Shirt 120
Hat 80
Shoes 40

StyleCode

For generic StyleCode rules, see stylecode.

User Contributed Notes
0 notes + add a note