API / Series/Pie / PieSeries
Defined in: src/types/chart/pie.ts:27
Extends
Type Parameters
Type Parameter | Default type |
---|---|
T |
MeaningfulAny |
Properties
Property | Type | Description |
---|---|---|
borderColor? |
string |
The color of the border surrounding each segment. Default --g-color-base-background from @gravity-ui/uikit. |
borderRadius? |
number |
The corner radius of the border surrounding each segment. Default 0 |
borderWidth? |
number |
The width of the border surrounding each segment. Default '1px' |
center? |
[null | string | number , null | string | number ] |
The center of the pie chart relative to the chart area. |
cursor? |
string |
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked. |
data |
PieSeriesData <T >[] |
- |
dataLabels? |
object & object |
Options for the series data labels, appearing next to each data point. |
innerRadius? |
string | number |
The inner radius of the pie. Default 0 |
legend? |
ChartLegend & object |
Individual series legend options. Has higher priority than legend options in widget data |
minRadius? |
string | number |
The minimum allowable radius of the pie. If specified as a percentage, the base for calculation is the height or width of the chart (the minimum value is taken) minus the halo effect. If not specified, the minimum radius is calculated as 30% of the height or width of the chart (the minimum value is taken) minus the halo effect. |
radius? |
string | number |
The radius of the pie relative to the chart area. The default behaviour is to scale to the chart area. |
renderCustomShape? |
(args : object ) => BaseType |
Function for adding custom svg nodes for a series |
type |
"pie" |
- |
visible? |
boolean |
Initial visibility of the series |
Previous
Next