API / geotoolkit / controls / shapes / DonutChart / DonutChart

Namespace: DonutChart

shapes.DonutChart.DonutChart

Table of contents

Type Aliases

Contents

Type Aliases

Data

Ƭ Data: Object

data object

Type declaration

NameTypeDescription
mode?DataMode | stringdata mode
order?DataOrder | stringdata order
values?AbstractDataSeries | Record<string, number> | number[] | string[] | string | number | booleanArray of values or associative object

FormatLabel

Ƭ FormatLabel: (annotation: string | number, value?: number) => string

Type declaration

▸ (annotation, value?): string

label format function

Parameters
Name Type
annotationstring | number
Optional valuenumber
Returns

string


Options

Ƭ Options: Object

params object

Type declaration

NameTypeDescription
autogradient?booleanautogradient flag
createselectedstyle?(src: FillStyle) => FillStylemethod to create selected style based on "regular" one (used when "selected_fillstyles" not set explicitly)
depth3d?numberheight of a pseudo-3d chart
direction?Directionslices' rendering direction
fillstyles?Type[]fill styles OR colors, in css or rgb (the color order follow "data.order" parameter in "setData" call)
inclination3d?numberangle of the pseudo-3d chart. should be between 0 and 90
innerradius?numberinner radius
label?{ direction?: LabelDirection ; format?: FormatLabel ; hideifdontfit?: boolean ; ispointingup?: boolean ; location?: LabelLocation ; preserveaspectratio?: boolean ; preservereadingorientation?: boolean ; preserverightangle?: boolean ; text?: string ; textstyle?: Type }labeling options object
label.direction?LabelDirectionlabel direction
label.format?FormatLabellabel formatting method
label.hideifdontfit?booleanhide an inside label if it doesn't fit
label.ispointingup?boolean-
label.location?LabelLocationlabel location
label.preserveaspectratio?boolean-
label.preservereadingorientation?boolean-
label.preserverightangle?boolean-
label.text?string-
label.textstyle?Typelabel text style
linestyle?Typelinestyle
maxouterradius?numbermax outer radius
maxslices?numbermaximum amount of slices the graph can have including an "other" slice. 0 for infinite
minpercentage?numberminimum percentage cutoff for a slice before it becomes part of "other". 0 for no limit
modellimitsmode?ModelLimitsMode | stringmodel limits mode
outerradius?numberouter radius
outsideline?{ length?: number ; linestyle?: Type ; pad?: number }outside line options object
outsideline.length?numberoutside line length
outsideline.linestyle?Typeoutside line style
outsideline.pad?numberoutside line pad
piemode?PieMode2d- or 3d-representation
selected-fillstyles?Type[]fill styles OR colors, in css or rgb (the color order follow "data.order" parameter in "setData" call)
showpercentagesthreshold?numberbelow this threshold (from 0 to 100) the percentage is not displayed
sliceshift?{ offsets?: number[] }slice shift options object
sliceshift.offsets?number[]slices shift offsets. Index in the array to match the index of slice
startangle?numberstarting angle of the first slice drawn, in degrees
totalangle?number-

OptionsBaseOut

Ƭ OptionsBaseOut: Object

Type declaration

NameTypeDescription
autogradientbooleanautogradient flag
createselectedstyle(src: FillStyle) => FillStylemethod to create selected style based on "regular" one (used when "selected_fillstyles" not set explicitly)
depth3dnumberheight of a pseudo-3d chart
directionDirectionslices' rendering direction
fillstylesFillStyle[]fill styles OR colors, in css or rgb (the color order follow "data.order" parameter in "setData" call)
inclination3dnumberangle of the pseudo-3d chart. should be between 0 and 90
innerradiusnumberinner radius
label{ direction: LabelDirection ; format: FormatLabel ; hideifdontfit: boolean ; location: LabelLocation ; text?: string ; textstyle: TextStyle | null }labeling options object
label.directionLabelDirectionlabel direction
label.formatFormatLabellabel formatting method in form function myLabelFormat(annotation, value) {...} returning {string} value
label.hideifdontfitbooleanhide an inside label if it doesn't fit
label.locationLabelLocationlabel location
label.text?string-
label.textstyleTextStyle | nulllabel text style
linestyleLineStyle | nullslice line style
maxouterradiusnumbermax outer radius
maxslicesnumbermaximum amount of slices the graph can have including an "other" slice. 0 for infinite
minpercentagenumberminimum percentage cutoff for a slice before it becomes part of "other". 0 for no limit
modellimitsmodeModelLimitsModemodel limits mode
outerradiusnumberouter radius
outsideline{ length: number ; linestyle: LineStyle | null ; pad: number }outside line options object
outsideline.lengthnumberoutside line length
outsideline.linestyleLineStyle | nulloutside line style
outsideline.padnumberoutside line pad
piemodePieMode2d- or 3d-representation
selected-fillstylesFillStyle[]fill styles OR colors, in css or rgb (the color order follow "data.order" parameter in "setData" call)
showpercentagesthresholdnumberbelow this threshold (from 0 to 100) the percentage is not displayed
sliceshift{ offsets: number[] }slice shift options object
sliceshift.offsetsnumber[]slices shift offsets. Index in the array to match the index of slice
startanglenumberstarting angle of the first slice drawn, in degrees
totalanglenumber-

OptionsOut

Ƭ OptionsOut: Merge<OptionsOut, OptionsBaseOut>

properties object


SliceInfo

Ƭ SliceInfo: Object

returned slice object

Type declaration

NameTypeDescription
angledegendnumberend angle
angledegstartnumberstart angle
colorTypecolor
labelstringlabel
percentagenumberpercentage
valuenumbervalue