Interface: PyramidSeriesOptions
Extends
StandaloneSeriesBaseOptions<PyramidTooltipRendererParams>
Properties
calloutLine?
optionalcalloutLine?:Switchable&object
Line from a segment to its outside label (segment color by default).
Type Declaration
length?
optionallength?:number
stroke?
optionalstroke?:string
strokeWidth?
optionalstrokeWidth?:number
fills?
optionalfills?:string[]
Inherited from
StandaloneSeriesBaseOptions.fills
id?
optionalid?:string
Inherited from
StandaloneSeriesBaseOptions.id
itemSpacing?
optionalitemSpacing?:number
Gap between segments (0 by default — solid pyramid).
label?
optionallabel?:Switchable&FontOptions&PartLabelBlockOptions<PyramidLabelFormatterParams> &object
Layer labels: the name and the value of a layer, drawn as one block so the two always read together — each half with its own font, layout putting the value in the same row (default) or on a line of its own. placement moves the whole block outside the shape (default) or inside it, where the text colour follows the contrast of the layer.
Type Declaration
formatter?
optionalformatter?: (params) =>string
The whole label at once; it wins over category/value.
Parameters
params
datum
stage
string
value
number
Returns
string
placement?
optionalplacement?:"outside"|"inside"
name?
optionalname?:string
Name of what the value of a node measures — the label of the tooltip row. Without it the row is named by the data key the value came from, which is the name of a column, not of a measure.
Overrides
StandaloneSeriesBaseOptions.name
reverse?
optionalreverse?:boolean
Bottom-up (apex at the top by default).
showInLegend?
optionalshowInLegend?:boolean
Inherited from
StandaloneSeriesBaseOptions.showInLegend
stageField
stageField:
string
stageName?
optionalstageName?:Formattable<PartNameParams>
How the value of stageField becomes text — for the legend, the tooltip heading and the name half of a layer 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.
tooltip?
optionaltooltip?:Switchable&object
Type Declaration
renderer?
optionalrenderer?: (params) =>string|TooltipContentData
Parameters
params
PyramidTooltipRendererParams
Returns
string | TooltipContentData
Overrides
StandaloneSeriesBaseOptions.tooltip
type
type:
"pyramid"
valueField
valueField:
string
visible?
optionalvisible?:boolean
Inherited from
StandaloneSeriesBaseOptions.visible
widthRatio?
optionalwidthRatio?:number
Fraction of the plot width used by the shape (0.62 by default); independent of labels.