Options
All
  • Public
  • Public/Protected
  • All
Menu

A series for pie charts.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new PieSeries(x: (string | number)[], y: number[], name?: string, colors?: (undefined | string)[]): PieSeries
  • Parameters

    • x: (string | number)[]

      The data for the x-axis.

    • y: number[]

      The data for the y-axis.

    • Optional name: string

      The name of the series. Optional.

    • Optional colors: (undefined | string)[]

      Should be an iterable that contains the color for each specific pie slice. If no colors are specified, the document's theme color is used. If some colors are specified, but not for all data points, random colors will fill the gaps. The value for non-specified colors must be None. Warning: this is not the same as self.color of XYSeries, which is the color for the entire series, but this is not applicable to PieSeries. Optional.

    Returns PieSeries

Properties

color

color: undefined | string

colors

colors: undefined | (undefined | string)[]

name

name: undefined | string

x

x: (string | number)[]

y

y: number[]

Methods

asDict

  • asDict(): {}

data

  • data(): {}[]

Generated using TypeDoc