Skip to content

Documentation / @ripl/charts / PieChartSegmentEvent

Interface: PieChartSegmentEvent ​

Defined in: charts/src/charts/pie.ts:122

Payload emitted for pie segment interaction events.

Properties ​

PropertyTypeDescriptionDefined in
keystringThe segment's unique key.charts/src/charts/pie.ts:132
labelstringThe segment's display label.charts/src/charts/pie.ts:130
valuenumberThe segment's numeric value.charts/src/charts/pie.ts:128
xnumberX position of the segment centroid, in canvas coordinates.charts/src/charts/pie.ts:124
ynumberY position of the segment centroid, in canvas coordinates.charts/src/charts/pie.ts:126