Skip to main content

PieChartSectionSegment

A band of a PieChartSection, drawn over the section from from_radius to to_radius.

Segments split a section into concentric layers, as in a stacked pie chart.

Inherits: BaseControl

Properties

  • color - The color of this segment.
  • from_radius - The distance from the inner edge of the section to the inner edge of this segment.
  • gradient - The gradient this segment is filled with.
  • to_radius - The distance from the inner edge of the section to the outer edge of this segment.

Properties​

colorclass-attributeinstance-attribute​

The color of this segment.

from_radiusclass-attributeinstance-attribute​

from_radius: Number = 0

The distance from the inner edge of the section to the inner edge of this segment.

It is clamped between 0 and the section's PieChartSection.radius. If it is not smaller than to_radius, this segment is not drawn.

gradientclass-attributeinstance-attribute​

gradient: Gradient | None = None

The gradient this segment is filled with.

Takes precedence over color.

to_radiusinstance-attribute​

to_radius: Number

The distance from the inner edge of the section to the outer edge of this segment.

It is clamped between 0 and the section's PieChartSection.radius.