Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

piechartSchema

const piechartSchema: object

Defined in: packages/node-piechart/src/types.ts:19

Schema for the piechart layer.

Properties:

  • slices: Array of slice definitions (color and value)
  • offset: Offset angle in radians (can be variable)
  • defaultColor: Color when no slices are visible

Type Declaration

defaultColor

readonly defaultColor: PropertySchema<string, "color", false>

offset

readonly offset: PropertySchema<number, "number", true>

slices

readonly slices: ArrayPropertySchema<{ color: PropertySchema<string, "color", true>; value: PropertySchema<number, "number", true>; }>