Interface: DonutSeriesOptions
Extends
PieLikeSeriesOptions
Properties
angleField
angleField:
string
Key of the value that determines the sector angle.
Inherited from
PieLikeSeriesOptions.angleField
angleName?
optionalangleName?:string
Inherited from
PieLikeSeriesOptions.angleName
calloutLine?
optionalcalloutLine?:object
Callout line made of two segments; each is configured separately. By default the color is the sector color.
horizontal?
optionalhorizontal?:CalloutSegmentOptions
Horizontal segment toward the label.
radial?
optionalradial?:CalloutSegmentOptions
Radial segment from the sector.
Inherited from
PieLikeSeriesOptions.calloutLine
cornerRadius?
optionalcornerRadius?:number
Sector corner radius, in px.
Inherited from
PieLikeSeriesOptions.cornerRadius
fills?
optionalfills?:string[]
Inherited from
PieLikeSeriesOptions.fills
id?
optionalid?:string
Inherited from
PieLikeSeriesOptions.id
innerCircle?
optionalinnerCircle?:object
fill?
optionalfill?:string
innerLabels?
optionalinnerLabels?:DonutInnerLabel[]
Text lines in the center of the ring.
innerRadiusRatio?
optionalinnerRadiusRatio?:number
Inner radius as a fraction of the outer radius (0.6 by default).
label?
optionallabel?:PieLabelOptions
Sector labels: the name and the value of a sector, drawn as one label so the two always read together. placement puts the whole label outside the pie on a callout line or inside the sector.
Inherited from
PieLikeSeriesOptions.label
labelField?
optionallabelField?:string
Key of the sector name (legend, labels, tooltip).
Inherited from
PieLikeSeriesOptions.labelField
labelName?
optionallabelName?:Formattable<PartNameParams>
How the value of labelField becomes text — for the legend, the tooltip heading and the name half of a sector label alike. A name is a field value, and the format of that field belongs to the series rather than to each place the name is printed in. label.category overrides it where a label wants something shorter than the legend.
Inherited from
PieLikeSeriesOptions.labelName
legendValue?
optionallegendValue?:Switchable&object
Values in the legend: "label … value".
Type Declaration
formatter?
optionalformatter?: (params) =>string
Parameters
params
PieTooltipRendererParams
Returns
string
Inherited from
PieLikeSeriesOptions.legendValue
outerRadiusRatio?
optionalouterRadiusRatio?:number
Fraction of the available radius used by the chart (0.85 by default).
Inherited from
PieLikeSeriesOptions.outerRadiusRatio
rotation?
optionalrotation?:number
Initial angle, in degrees.
Inherited from
PieLikeSeriesOptions.rotation
sectorSpacing?
optionalsectorSpacing?:number
Angular gap between sectors, in px (at the outer radius).
Inherited from
PieLikeSeriesOptions.sectorSpacing
showInLegend?
optionalshowInLegend?:boolean
Inherited from
PieLikeSeriesOptions.showInLegend
stroke?
optionalstroke?:string
Sector stroke (none by default; use sectorSpacing for gaps).
Inherited from
PieLikeSeriesOptions.stroke
strokes?
optionalstrokes?:string[]
Inherited from
PieLikeSeriesOptions.strokes
strokeWidth?
optionalstrokeWidth?:number
Inherited from
PieLikeSeriesOptions.strokeWidth
tooltip?
optionaltooltip?:Switchable&object
Type Declaration
renderer?
optionalrenderer?: (params) =>string|TooltipContentData
Parameters
params
PieTooltipRendererParams
Returns
string | TooltipContentData
Inherited from
PieLikeSeriesOptions.tooltip
type
type:
"donut"
visible?
optionalvisible?:boolean
Inherited from
PieLikeSeriesOptions.visible