Skip to content
Last updated

API / geotoolkit / controls / shapes / PieChart / PieChart

Class: PieChart

shapes.PieChart.PieChart

This class defines the PieChart object. Pie Chart is the kind of diagram that displays data as a “pie”. Every data item in data source represents a “piece of pie” - slice.<br> The doughnut and pie charts are generally equal but pie chart does not have a hole in the center so extra parameter - inner radius is always equal to '0'.

Hierarchy

Table of contents

Constructors
  • [new PieChart(options, data)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.controls.shapes-1.piechart.piechart.md#new piechart(options, data))
Methods
addBaseLayeraddChildaddCssClass
addInvalidateHandleraddOverlayadjustPosition
applyOpacityapplyResponsiveStylechangeBaseLayerOrder
changeChildOrderchangeOverlayOrdercheckCollision
clearBaseLayersclearCacheclearChildren
clearOverlayscloneconnectStyle
copyConstructordisconnectStyledispose
drawBorderenableClippingenableEventPropagation
enablePickingChildrenenumerateNodesexecute
filtergetAnimationStylegetAutoModelLimitsMode
getAutoModelLimitsStrategygetBaseLayergetBaseLayers
getBaseLayersCountgetBoundsgetCache
getChildgetChildrengetChildrenCount
getClassNamegetClipStylegetContentOrientation
getContentsAreagetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getDesiredHeightgetDesiredWidthgetDeviceLimits
getFillStylegetIdgetInfiniteMode
getInvalidateMethodgetLayoutgetLayoutStyle
getLineStylegetLocalTransformgetMarginsStyle
getModelLimitsgetNamegetOpacity
getOpacityBlendModegetOptionsgetOverlay
getOverlayAtgetOverlaysgetOverlaysCount
getPaddingStylegetParentgetPreferredSize
getPropertiesgetPropertygetPropertyKeys
getRenderingFiltergetResponsiveStylegetRoot
getScaleScrollStrategygetSceneTransformgetSliceByIndex
getSlicesCountgetTaggetVisible
getVisibleDeviceLimitsgetVisibleModelLimitsgetWorldTransform
getZIndexhasCssClasshasEventListener
highlightSlicesindexOfBaseLayerindexOfChild
indexOfOverlayinsertBaseLayerinsertChild
insertOverlayinvalidateinvalidateLayout
invalidateParentisClippingEnabledisDisposed
isEventPropagationEnabledisHorizontalFlipisLayoutInvalidated
isNotificationEnabledisPickingChildrenEnabledisSelectable
isSilentisVerticalFlipmoveTo
notifynotifyRootoff
ononBoundsChangedonChildAdded
onChildRemovedonParentChangedonVisibilityChanged
postRenderingpreRenderingrebuild
registerAnimationStyleremoveBaseLayerremoveChild
removeCssClassremoveInvalidateHandlerremoveOverlay
renderrenderAsyncrenderBackground
renderBaseLayersrenderBaseLayersAsyncrenderChildren
renderChildrenAsyncrenderContentrenderContentAsync
renderOverlaysrenderOverlaysAsyncresumeUpdate
rotatescaleselectSlicesAt
setAnimationStylesetAutoModelLimitsModesetAutoModelLimitsStrategy
setBoundssetCachesetChild
setClipStylesetContentOrientationsetCss
setCssClasssetCssTransformsetData
setDesiredHeightsetDesiredWidthsetFillStyle
setHorizontalFlipsetIdsetInfiniteMode
setLayoutsetLayoutInvalidatedsetLayoutStyle
setLineStylesetLocalTransformsetMarginsStyle
setModelLimitssetNamesetNotification
setOpacitysetOptionssetPaddingStyle
setParentsetPropertiessetProperty
setRenderingFiltersetResponsiveStylesetScaleScrollStrategy
setSelectablesetSilentsetTag
setVerticalFlipsetVisiblesetVisibleModelLimits
setZIndexshearsuspendUpdate
toStringtranslateunregisterAnimationStyle
updateLayoutupdateSceneTransformationupdateState
updateSuspendedupdateTimeStampenableSceneGraphNotification
findParentgetClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
autogradientbooleanAutogradient flag
automodellimitsmodebooleanAuto model limits mode
boundsRectDefine position of the group in the parent
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
childrenNodeArray of children nodes, nodes won&#x27;t be disposed
children-cssclassstringThe css class name of this node
children-idstring | numberId of the node, its a unique identifier
children-namestringName of the node. It is often used for debugging purposes or to simplify queries
children-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
children-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
children-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
children-z-indexnumberDefine node z-index
clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
clipstyleGraphicsPathClipping style
clipstyle-boundsRectBounds
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on (&#x27;nonzero&#x27; mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
contentorientationOrientationContent orientation
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
depth3dnumberHeight of a pseudo-3d chart
directionDirectionSlices&#x27; rendering direction
fillstylestringFill style
fillstyleFillStyleFill style
fillstyle-colorstringColor in CSS form
fillstyle-evenoddmodebooleanEven-odd fill mode
fillstyle-fillpatternPatternPattern
fillstyle-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
fillstyle-fillpattern-patternnamestringName of this pattern for indexing
fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
fillstyle-foregroundstringForeground color
fillstyle-patternPatternPattern
horizontalflipbooleanHorizontal axis goes from right to left
idstring | numberId of the node, its a unique identifier
inclination3dnumberAngle of the pseudo-3d chart. should be between 0 and 90
infinitybooleanMode to render outside the model limits
innerradiusnumberInner radius
layoutstyleLayoutStyleLayout style to be used for parent layout
layoutstyle-constraintSizeConstraintLayout constrains
layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
layoutstyle-floatstringFloat position
layoutstyle-positionstringLayout position
layoutstyle-sizenumber | stringLayout size
linestylestringLinestyle
linestyleLineStyleLinestyle
linestyle-colorstringColor in CSS form
linestyle-fillstringOptional fill style to be used to fill lines generated with this style
linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
linestyle-linecapCapStyleThe line cap style
linestyle-linedashoffsetnumberLine dash offset of dashed line
linestyle-linejoinJoinStyleThe line join style
linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
linestyle-scalablebooleanTrue if width should depend on transformation
linestyle-unitstringOptional unit for the width
linestyle-widthnumber | stringThe line thickness
linestylestringLine style
linestyleLineStyleLine style
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
marginsnumber | stringIt has properties for specifying the margins for each side
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
modellimitsRectDefine inner model coordinates of the group
modellimitsmodeModelLimitsModeModel limits mode
namestringName of the node. It is often used for debugging purposes or to simplify queries
opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
opacityblendmodeBlendModeNode opacity mode to blend it
outerradiusnumberOuter radius
paddingnumber | stringIt has properties for specifying the padding for each side
pickingchildrenbooleanEnable picking children
piemodePieMode2d- or 3d-representation
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
showpercentagesthresholdnumberBelow this threshold (from 0 to 100) the percentage is not displayed
startanglenumberStarting angle of the first slice drawn, in degrees
taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
totalanglenumber
transformstringAdditional CSS transformation applied to node or &#x27;none&#x27;
transformTransformationAdditional CSS transformation applied to node or &#x27;none&#x27;
verticalflipbooleanVertical axis goes from bottom to top
viewcachebooleanView cache to cache child nodes
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new PieChart(options, data)

• new PieChart(options?, data?)

Parameters

Name Type
Optional optionsOptions
Optional dataData

Overrides

DonutChart.constructor

Methods

addBaseLayer

▸ addBaseLayer(baseLayer): PieChart

Add baseLayer to container

Parameters

Name Type Description
baseLayerNode | Node[]baseLayer to be added

Returns

PieChart

this

Inherited from

DonutChart.addBaseLayer


addChild

▸ addChild(node): PieChart

Add a child node

Parameters

Name Type Description
nodeNode | Iterator<Node&gt; | Node[]the child node to be added

Returns

PieChart

this

Inherited from

DonutChart.addChild


addCssClass

▸ addCssClass(cssclass): PieChart

Adds new css class to node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

PieChart

this

Inherited from

DonutChart.addCssClass


addInvalidateHandler

▸ addInvalidateHandler(handler): PieChart

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

PieChart

this

Inherited from

DonutChart.addInvalidateHandler


addOverlay

▸ addOverlay(overlay): PieChart

Add overlay to container

Parameters

Name Type Description
overlayNode | Node[]overlay to be added

Returns

PieChart

this

Inherited from

DonutChart.addOverlay


adjustPosition

▸ adjustPosition(area?, vAlign?, hAlign?): PieChart

Adjust position of node to specified area

Parameters

Name Type Description
Optional areaRectspecified area. Default to Parent Model Limits
Optional vAlignstringvertical alignment. It can be &quot;top&quot;, &quot;bottom&quot;, &quot;center&quot;. Defaults to &quot;top&quot;.
Optional hAlignstringhorizontal alignment It can be &quot;left&quot;, &quot;right&quot;, &quot;center&quot;. Defaults to &quot;left&quot;.

Returns

PieChart

this

Inherited from

DonutChart.adjustPosition


applyOpacity

▸ Protected applyOpacity(context): PieChart

This method is called to apply opacity if it is specified on the rendering context. The default implementation sets global alpha on the rendering context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

PieChart

this

Inherited from

DonutChart.applyOpacity


applyResponsiveStyle

▸ Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

DonutChart.applyResponsiveStyle


changeBaseLayerOrder

▸ changeBaseLayerOrder(overlay, order, anchor?): PieChart

Changes the z-order of the baseLayer.

Parameters

Name Type Description
overlayNode
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

PieChart

this

Inherited from

DonutChart.changeBaseLayerOrder


changeChildOrder

▸ changeChildOrder(node, order, anchor?): PieChart

changes the z-order of the nodes being rendered.

Parameters

Name Type Description
nodeNodeany child added in the Composite node
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

PieChart

this

Inherited from

DonutChart.changeChildOrder


changeOverlayOrder

▸ changeOverlayOrder(overlay, order, anchor?): PieChart

Changes the z-order of the overlay.

Parameters

Name Type Description
overlayNodechild overlay
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

PieChart

this

Inherited from

DonutChart.changeOverlayOrder


checkCollision

▸ checkCollision(context): boolean

Check collision

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if object is inside of rendering area

Inherited from

DonutChart.checkCollision


clearBaseLayers

▸ clearBaseLayers(disposeBaseLayers?): PieChart

Remove all child baseLayers from group

Parameters

Name Type Description
Optional disposeBaseLayersbooleanautomatically dispose baseLayers. If it is true then method dispose is called for each baseLayer, false by default

Returns

PieChart

this

Inherited from

DonutChart.clearBaseLayers


clearCache

▸ clearCache(): PieChart

Clear cache

Returns

PieChart

this

Inherited from

DonutChart.clearCache


clearChildren

▸ clearChildren(disposeChildren?): PieChart

Remove all child nodes from this composite group

Parameters

Name Type Description
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

PieChart

this

Inherited from

DonutChart.clearChildren


clearOverlays

▸ clearOverlays(disposeOverlays?): PieChart

Remove all child overlays from group

Parameters

Name Type Description
Optional disposeOverlaysbooleanautomatically dispose overlays. If it is true then method dispose is called for each overlay, false by default

Returns

PieChart

this

Inherited from

DonutChart.clearOverlays


clone

▸ clone(): Group<Node&gt;

All subclasses should override copyConstructor or provide custom implementation for this method

Returns

Group<Node&gt;

clone

Inherited from

DonutChart.clone


connectStyle

▸ connectStyle(style, type, callback): PieChart

Connects style.<br> <br> This convenience method subscribes a listener to given style for the specified type.<br> And automatically un-subscribes listener if node is disposed to prevent memory leaks

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher&gt;function to be called

Returns

PieChart

this

Inherited from

DonutChart.connectStyle


copyConstructor

▸ Protected copyConstructor(src, deepCopy?): PieChart

Copy constructor function.<br> Function used as part of the cloning mechanism.<br> Implementations should copy the given instance state to this instance.<br>

Parameters

Name Type Description
srcDonutChartSource to copy from
Optional deepCopybooleandeep copy

Returns

PieChart

this

Inherited from

DonutChart.copyConstructor


disconnectStyle

▸ disconnectStyle(style, type, callback): PieChart

Disconnect style <br> This convenience method un-subscribes a listener to given style for the specified type.<br>

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher&gt;function to be called

Returns

PieChart

this

Inherited from

DonutChart.disconnectStyle


dispose

▸ dispose(): void

Dispose DonutChart and its shapes

Returns

void

Inherited from

DonutChart.dispose


drawBorder

▸ Protected drawBorder(localContext, bounds?): PieChart

Draws a rectangle at the bounding box (in parent coordinates)

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

PieChart

this

Inherited from

DonutChart.drawBorder


enableClipping

▸ enableClipping(doClip): PieChart

Enables or disables clipping of this node. If enabled, shapes will not be rendered outside of its bounds.

Parameters

Name Type Description
doClipbooleanenable clipping on this node

Returns

PieChart

this

Inherited from

DonutChart.enableClipping


enableEventPropagation

▸ enableEventPropagation(enable): PieChart

Enable event propagation from the node hierarchy from bottom to top <p> This option is similar to DOM Event bubbling, which allows to get any event from child node. By default it is disabled for better performance. </p>

Example

import {Group} from '@int/geotoolkit/scene/Group';
import {Events as SceneEvents} from '@int/geotoolkit/scene/Node';
const parentGroup = new Group()
.setName('ParentGroup')
.enableEventPropagation(true);
const childGroup = new Group()
.setName('ChildGroup');

parentGroup.addChild(childGroup);
parentGroup.on(SceneEvents.Invalidate, (eventName, sender, args) =&gt; {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

PieChart

this

Inherited from

DonutChart.enableEventPropagation


enablePickingChildren

▸ enablePickingChildren(enable): PieChart

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

PieChart

this

Inherited from

DonutChart.enablePickingChildren


enumerateNodes

▸ enumerateNodes(callback, target?): void

Executes a provided function once for each child node

Parameters

Name Type Description
callbackCallback<Node&gt;provided function
Optional targetQueryBuilder<any&gt;target to pass to callback as a second parameter

Returns

void

Inherited from

DonutChart.enumerateNodes


execute

▸ execute(delegate): PieChart

Executes delegate and return the result. It allows us to keep all initialization calls in one place, <br> and we do not need to scroll up or down in IDE to find how and where it was initialized.

Example

// All setters (.setName() for example) returns reference to the this.
// In order to modify inner object like LineStyle or Pattern, to get this object (property) we should call getter to get object reference.
// Then modify it as shown below in Option 1 or you can use execute methods shown in Option 2.
import {Group} from '@int/geotoolkit/scene/Group';
import {Rect} from '@int/geotoolkit/util/Rect';
// Option 1
const group = new Group()
.setName('MyGroup')
.setBounds(new Rect(0, 0, 42, 16))
.enableClipping(true)
.setTag({'type': 'sometype'});

group.getLineStyle().setPattern('pattern');
return group;

// Options 2 ( using execute method )
return group
.execute(function () {
this.getLineStyle()
.setPattern("pattern");
});

Parameters

Name Type Description
delegate(this: PieChart) => voidFunction to execute

Returns

PieChart

The result if any or this

Inherited from

DonutChart.execute

▸ execute<T&gt;(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: PieChart) => T

Returns

T

Inherited from

DonutChart.execute


filter

▸ Protected filter(context): boolean

Filter node

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

flag filter flag ("true" to render node; "false" otherwise)

Inherited from

DonutChart.filter


getAnimationStyle

▸ getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

DonutChart.getAnimationStyle


getAutoModelLimitsMode

▸ getAutoModelLimitsMode(): boolean

Get Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds

Returns

boolean

mode

Inherited from

DonutChart.getAutoModelLimitsMode


getAutoModelLimitsStrategy

▸ getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

DonutChart.getAutoModelLimitsStrategy


getBaseLayer

▸ getBaseLayer(index): Node

Return baseLayer at specified index

Parameters

Name Type Description
indexnumberindex at which to get the baseLayer for

Returns

Node

track

Inherited from

DonutChart.getBaseLayer


getBaseLayers

▸ getBaseLayers<S&gt;(predicate, modify?): Iterator<Node&gt;

Return iterator by baseLayers nodes

Type parameters

NameType
Sextends Node<S&gt;

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

Inherited from

DonutChart.getBaseLayers

▸ getBaseLayers(filter?, modify?): Iterator<Node&gt;

Returns an iterator for child baseLayers. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

An iterator for child overlays.

Inherited from

DonutChart.getBaseLayers


getBaseLayersCount

▸ getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

DonutChart.getBaseLayersCount


getBounds

▸ getBounds(): Rect

Get the bounds in the parents model space. If bounds are not set, then parent model limits are used.

Returns

Rect

current bounds

Inherited from

DonutChart.getBounds


getCache

▸ getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

DonutChart.getCache


getChild

▸ getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

DonutChart.getChild


getChildren

▸ getChildren<S&gt;(predicate, modify?): Iterator<S&gt;

Return iterator by child nodes

Type parameters

NameType
Sextends Node<S&gt;

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<S&gt;

Inherited from

DonutChart.getChildren

▸ getChildren(filter?, modify?): Iterator<Node&gt;

Returns an iterator for child nodes. The iterator does not support adding or deleting items from children by default. If it is necessary to modify a collection of children, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getChildren(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all nodes if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

An iterator for child nodes.

Inherited from

DonutChart.getChildren


getChildrenCount

▸ getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

DonutChart.getChildrenCount


getClassName

▸ getClassName(): string

Returns

string

Inherited from

DonutChart.getClassName


getClipStyle

▸ getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

DonutChart.getClipStyle


getContentOrientation

▸ getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

DonutChart.getContentOrientation


getContentsArea

▸ getContentsArea(transformation?): Rect

Return area without paddings. Model limits are mapped to content area, where children are layout.

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

DonutChart.getContentsArea


getContentsTransform

▸ getContentsTransform(): Transformation

<code>getContentsTransform()</code> retrieves the world transformation of the node.

Returns

Transformation

transformation from model coordinates to bounds of the group

Inherited from

DonutChart.getContentsTransform


getCss

▸ getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

DonutChart.getCss


getCssClass

▸ getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

DonutChart.getCssClass


getCssClasses

▸ getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

DonutChart.getCssClasses


getCssTransform

▸ getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

DonutChart.getCssTransform


getDesiredHeight

▸ getDesiredHeight(): string | number

Returns desired height of the group as a layoutable object This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired height ("undefined" by default)

Inherited from

DonutChart.getDesiredHeight


getDesiredWidth

▸ getDesiredWidth(): string | number

Returns desired width of the group as a layoutable object. This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired width ("undefined" by default)

Inherited from

DonutChart.getDesiredWidth


getDeviceLimits

▸ getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

DonutChart.getDeviceLimits


getFillStyle

▸ getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

DonutChart.getFillStyle


getId

▸ getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

DonutChart.getId


getInfiniteMode

▸ getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

DonutChart.getInfiniteMode


getInvalidateMethod

▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher&gt;

Gets invalidate method

Returns

AttributeCallback<EventDispatcher&gt;

method to invalidate this object

Inherited from

DonutChart.getInvalidateMethod


getLayout

▸ getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

DonutChart.getLayout


getLayoutStyle

▸ getLayoutStyle(): LayoutStyle<string | number&gt;

return desired layout style

Returns

LayoutStyle<string | number&gt;

Inherited from

DonutChart.getLayoutStyle


getLineStyle

▸ getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

DonutChart.getLineStyle


getLocalTransform

▸ getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

DonutChart.getLocalTransform


getMarginsStyle

▸ getMarginsStyle(): SpaceStyle<string | number&gt;

Return margins style

Returns

SpaceStyle<string | number&gt;

Inherited from

DonutChart.getMarginsStyle


getModelLimits

▸ getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

DonutChart.getModelLimits


getName

▸ getName(): string

Returns the node name

Returns

string

The node name

Inherited from

DonutChart.getName


getOpacity

▸ getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

DonutChart.getOpacity


getOpacityBlendMode

▸ getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

DonutChart.getOpacityBlendMode


getOptions

▸ getOptions(): OptionsBaseOut

Gets display options (see DonutChart.setOptions for more info)

Returns

OptionsBaseOut

display options

Inherited from

DonutChart.getOptions


getOverlay

▸ getOverlay(index): Node

Return overlay at specified index

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

DonutChart.getOverlay


getOverlayAt

▸ getOverlayAt(index): Node

Return overlay at specified index

Deprecated

since 4.2 use getOverlay instead

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

DonutChart.getOverlayAt


getOverlays

▸ getOverlays<S&gt;(predicate, modify?): Iterator<Node&gt;

Return iterator by overlays nodes

Type parameters

NameType
Sextends Node<S&gt;

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

Inherited from

DonutChart.getOverlays

▸ getOverlays(filter?, modify?): Iterator<Node&gt;

Returns an iterator for child overlays. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node&gt;

An iterator for child overlays.

Inherited from

DonutChart.getOverlays


getOverlaysCount

▸ getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

DonutChart.getOverlaysCount


getPaddingStyle

▸ getPaddingStyle(): SpaceStyle<string | number&gt;

Return padding style

Returns

SpaceStyle<string | number&gt;

padding

Inherited from

DonutChart.getPaddingStyle


getParent

▸ getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

DonutChart.getParent


getPreferredSize

▸ getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

DonutChart.getPreferredSize


getProperties

▸ getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties object

Inherited from

DonutChart.getProperties


getProperty

▸ getProperty(name): any

Gets dynamic property by name. These properties can be used as a property bags

Parameters

Name Type Description
namestringproperty name

Returns

any

Inherited from

DonutChart.getProperty


getPropertyKeys

▸ getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

DonutChart.getPropertyKeys


getRenderingFilter

▸ getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

DonutChart.getRenderingFilter


getResponsiveStyle

▸ getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

DonutChart.getResponsiveStyle


getRoot

▸ getRoot(): Node

Returns root node. <br> If node doesn't have parent then it returns itself.

Returns

Node

the root node

Inherited from

DonutChart.getRoot


getScaleScrollStrategy

▸ getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

DonutChart.getScaleScrollStrategy


getSceneTransform

▸ getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

DonutChart.getSceneTransform


getSliceByIndex

▸ getSliceByIndex(index): SliceInfo

return slice at specific index if it exists, null otherwise

Example

{ 'label: 'slice1', 'value': 42, 'percentage' : 14.01, 'color': 'red', 'angleDegStart' : 10, 'angleDegEnd' : 45 }

Parameters

Name Type Description
indexnumberspecified index to return the slice at

Returns

SliceInfo

object that describes slice information - the corresponding slice information contains

Inherited from

DonutChart.getSliceByIndex


getSlicesCount

▸ getSlicesCount(): number

return the number of slices in the donut chart

Returns

number

Inherited from

DonutChart.getSlicesCount


getTag

▸ getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

DonutChart.getTag


getVisible

▸ getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

DonutChart.getVisible


getVisibleDeviceLimits

▸ getVisibleDeviceLimits(ignoreModelLimits?): Rect

Return visible device limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

DonutChart.getVisibleDeviceLimits


getVisibleModelLimits

▸ getVisibleModelLimits(ignoreModelLimits?): Rect

Return visible model limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

DonutChart.getVisibleModelLimits


getWorldTransform

▸ getWorldTransform(): Transformation

Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.

Returns

Transformation

Inherited from

DonutChart.getWorldTransform


getZIndex

▸ getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

DonutChart.getZIndex


hasCssClass

▸ hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

DonutChart.hasCssClass


hasEventListener

▸ hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

DonutChart.hasEventListener


highlightSlices

▸ highlightSlices(slices, append?): PieChart

Highlight specified slices

Parameters

Name Type Description
slicesnumber[]array of slices' indices to highlight
Optional appendbooleanappend or replace flag

Returns

PieChart

this

Inherited from

DonutChart.highlightSlices


indexOfBaseLayer

▸ indexOfBaseLayer(baseLayer): number

Return index of overlay ( index of the specified child or -1 if baseLayer is not found)

Parameters

Name Type Description
baseLayerNodebaseLayer to check index

Returns

number

Inherited from

DonutChart.indexOfBaseLayer


indexOfChild

▸ indexOfChild(node): number

Return index of child ( index of the specified child or -1 if node is not found)

Parameters

Name Type Description
nodeNodenode to check index

Returns

number

Inherited from

DonutChart.indexOfChild


indexOfOverlay

▸ indexOfOverlay(overlay): number

Return index of overlay ( index of the specified child or -1 if overlay is not found)

Parameters

Name Type Description
overlayNodeoverlay to check index

Returns

number

Inherited from

DonutChart.indexOfOverlay


insertBaseLayer

▸ insertBaseLayer(index, baseLayer): PieChart

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

PieChart

this

Inherited from

DonutChart.insertBaseLayer


insertChild

▸ insertChild(index, node): PieChart

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

PieChart

this

Inherited from

DonutChart.insertChild


insertOverlay

▸ insertOverlay(index, overlay): PieChart

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

PieChart

this

Inherited from

DonutChart.insertOverlay


invalidate

▸ invalidate(bounds?, force?): PieChart

Invalidate node

Parameters

Name Type Description
Optional boundsRectoptional rectangular area to be invalidated, or force flag if rectangle is empty
Optional forcebooleanoptional boolean parameter that can force invalidation

Returns

PieChart

this

Inherited from

DonutChart.invalidate


invalidateLayout

▸ invalidateLayout(propagate?): PieChart

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

PieChart

this

Inherited from

DonutChart.invalidateLayout


invalidateParent

▸ invalidateParent(bounds?, force?): PieChart

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

PieChart

this

Inherited from

DonutChart.invalidateParent


isClippingEnabled

▸ isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

DonutChart.isClippingEnabled


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

DonutChart.isDisposed


isEventPropagationEnabled

▸ isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

DonutChart.isEventPropagationEnabled


isHorizontalFlip

▸ isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

DonutChart.isHorizontalFlip


isLayoutInvalidated

▸ isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

DonutChart.isLayoutInvalidated


isNotificationEnabled

▸ isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

DonutChart.isNotificationEnabled


isPickingChildrenEnabled

▸ isPickingChildrenEnabled(): boolean

Returns if picking children is enabled or not for this node.

Returns

boolean

pickingChildren

Inherited from

DonutChart.isPickingChildrenEnabled


isSelectable

▸ isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

DonutChart.isSelectable


isSilent

▸ isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

DonutChart.isSilent


isVerticalFlip

▸ isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

DonutChart.isVerticalFlip


moveTo

▸ moveTo(area, vAlign?, hAlign?): PieChart

MoveTo position of node to specified area

Parameters

Name Type Description
areaRectspecified area
Optional vAlignstringvertical alignment. It can be &quot;top&quot;, &quot;bottom&quot;, &quot;center&quot;.
Optional hAlignstringhorizontal alignment It can be &quot;left&quot;, &quot;right&quot;, &quot;center&quot;.

Returns

PieChart

this

Inherited from

DonutChart.moveTo


notify

▸ notify<E&gt;(type, source, args?): PieChart

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceGroup<Node&gt;source who called the event
Optional argsEventMap<Node&gt;[E]event arguments

Returns

PieChart

this

Inherited from

DonutChart.notify


notifyRoot

▸ Protected notifyRoot(event, source, args?): Node

Notify an even to root node

Parameters

Name Type Description
eventstringtype of event
sourceNodesource who called the event
Optional argsanyevent arguments

Returns

Node

this

Inherited from

DonutChart.notifyRoot


off

▸ off<E&gt;(type?, callback?): PieChart

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: PieChart, args: EventMap<Node&gt;[E]) => voidfunction to be called

Returns

PieChart

this

Inherited from

DonutChart.off


on

▸ on<E&gt;(type, callback): PieChart

Attach listener on event that will be called whenever the specified event is delivered to the target <p> If the callback function is already in the list of event listeners for this target, the function is not added a second time. </p> <p> If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target. </p>

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: PieChart, args: EventMap<Node&gt;[E]) => voidto be called

Returns

PieChart

this

Inherited from

DonutChart.on


onBoundsChanged

▸ Protected onBoundsChanged(bounds): PieChart

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

PieChart

this

Inherited from

DonutChart.onBoundsChanged


onChildAdded

▸ Protected onChildAdded(child): void

This method is called it child or children are added

Parameters

Name Type Description
childNode | Iterator<Node&gt;added child

Returns

void

Inherited from

DonutChart.onChildAdded


onChildRemoved

▸ Protected onChildRemoved(child): void

This method is called it child or children are removed

Parameters

Name Type Description
childNoderemoved child

Returns

void

Inherited from

DonutChart.onChildRemoved


onParentChanged

▸ Protected onParentChanged(node): PieChart

This method is called when parent changes. Do not call it directly.

Parameters

Name Type Description
nodeNodenode to change parent

Returns

PieChart

this

Inherited from

DonutChart.onParentChanged


onVisibilityChanged

▸ Protected onVisibilityChanged(): void

This method is called if visibility is changed. Send event Events.VisibilityChanged

Returns

void

Inherited from

DonutChart.onVisibilityChanged


postRendering

▸ Protected postRendering(context, callback?): void

To be called after rendering, used for PDF output

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering

Returns

void

Inherited from

DonutChart.postRendering


preRendering

▸ Protected preRendering(context, callback?): void

Occurs before child rendering

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering of geometry

Returns

void

Inherited from

DonutChart.preRendering


rebuild

▸ rebuild(force?, changes?): PieChart

Rebuild node. This method resets state, cache, and invalidate node.

Parameters

Name Type Description
Optional forcebooleanoptional boolean parameter that can force invalidation
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

PieChart

this

Inherited from

DonutChart.rebuild


registerAnimationStyle

▸ registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

DonutChart.registerAnimationStyle


removeBaseLayer

▸ removeBaseLayer(baseLayer): PieChart

Remove child baseLayer

Parameters

Name Type Description
baseLayerNode | Node[]baseLayer or array of nodes to be removed

Returns

PieChart

this

Inherited from

DonutChart.removeBaseLayer


removeChild

▸ removeChild(node, disposeChildren?): PieChart

Remove child node

Parameters

Name Type Description
nodeNode | Node[]node or array of nodes to be removed
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

PieChart

this

Inherited from

DonutChart.removeChild


removeCssClass

▸ removeCssClass(cssclass): PieChart

Removes css class from node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

PieChart

this

Inherited from

DonutChart.removeCssClass


removeInvalidateHandler

▸ removeInvalidateHandler(handler): PieChart

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

PieChart

this

Inherited from

DonutChart.removeInvalidateHandler


removeOverlay

▸ removeOverlay(overlay): PieChart

Remove child overlay

Parameters

Name Type Description
overlayNode | Node[]overlay or array of nodes to be removed

Returns

PieChart

this

Inherited from

DonutChart.removeOverlay


render

▸ render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

DonutChart.render


renderAsync

▸ renderAsync(context, callback): void

Render node in asynchronous mode. This implementation doesn't support cache for now.

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function

Returns

void

Inherited from

DonutChart.renderAsync


renderBackground

▸ Protected renderBackground(context, bounds): PieChart

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

PieChart

this

Inherited from

DonutChart.renderBackground


renderBaseLayers

▸ Protected renderBaseLayers(context): PieChart

Render baseLayers on bottom of cache. This method does nothing, but can be implemented to render graphics on bottom of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render baseLayers

Returns

PieChart

this

Inherited from

DonutChart.renderBaseLayers


renderBaseLayersAsync

▸ Protected renderBaseLayersAsync(context, callback): void

Render baseLayers on bottom of cache in asynchronous mode. This method calls renderBaseLayers

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

DonutChart.renderBaseLayersAsync


renderChildren

▸ Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

DonutChart.renderChildren


renderChildrenAsync

▸ Protected renderChildrenAsync(context, callback): void

Render children async

Parameters

Name Type Description
contextRenderingContextRendering Context
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

DonutChart.renderChildrenAsync


renderContent

▸ Protected renderContent(context): void

render to specified context. This method calls preRendering, renderChildren, postRendering

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

DonutChart.renderContent


renderContentAsync

▸ Protected renderContentAsync(context, callback): void

Render children in asynchronous mode

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

DonutChart.renderContentAsync


renderOverlays

▸ Protected renderOverlays(context): PieChart

Render overlays on top of cache. This method does nothing, but can be implemented to render graphics on top of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render overlays

Returns

PieChart

this

Inherited from

DonutChart.renderOverlays


renderOverlaysAsync

▸ Protected renderOverlaysAsync(context, callback): void

Render overlays on top of cache in asynchronous mode. This method calls renderOverlays

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

DonutChart.renderOverlaysAsync


resumeUpdate

▸ resumeUpdate(rebuild?, changes?): PieChart

Resume auto update

Parameters

Name Type Description
Optional rebuildbooleanforce rebuild
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

PieChart

this

Inherited from

DonutChart.resumeUpdate


rotate

▸ rotate(theta, x, y): PieChart

Rotate bounds around a given coordinate

Parameters

Name Type Description
thetanumberangle to rotate node, in radians
xnumberx coordinate to rotate around
ynumbery coordinate to rotate around

Returns

PieChart

this

Inherited from

DonutChart.rotate


scale

▸ scale(xx, yy): PieChart

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

PieChart

this

Inherited from

DonutChart.scale


selectSlicesAt

▸ selectSlicesAt(x, y, highlight?): number[]

Selects elements at a specified device point

Parameters

Name Type Description
xnumberx-ordinate
ynumbery-ordinate
Optional highlightbooleantrue to highlight selected elements, false otherwise

Returns

number[]

array of selected slices' indices

Inherited from

DonutChart.selectSlicesAt

▸ selectSlicesAt(x, y?, highlight?): number[]

Selects elements at a specified device point or rectangle

Parameters

Name Type Description
xPoint | Rectdevice point or rectangle to select
Optional ynulloptional unnecessary parameter
Optional highlightbooleantrue to highlight selected elements, false otherwise

Returns

number[]

array of selected slices' indices

Inherited from

DonutChart.selectSlicesAt

▸ selectSlicesAt(x, y, highlight?): number[]

Selects elements at a specified device polygon

Parameters

Name Type Description
xnumber[]array of polygon x-ordinates
ynumber[]array of polygon y-ordinates
Optional highlightbooleantrue to highlight selected elements, false otherwise

Returns

number[]

array of selected slices' indices

Inherited from

DonutChart.selectSlicesAt


setAnimationStyle

▸ setAnimationStyle(animationStyle): PieChart

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

PieChart

Inherited from

DonutChart.setAnimationStyle


setAutoModelLimitsMode

▸ setAutoModelLimitsMode(mode): PieChart

Set Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds. This is convenient method. It creates AutoModelLimitsStrategy

Parameters

Name Type Description
modebooleanModel Limits Logics to be used

Returns

PieChart

this

Inherited from

DonutChart.setAutoModelLimitsMode


setAutoModelLimitsStrategy

▸ setAutoModelLimitsStrategy(strategy): PieChart

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

PieChart

this

Inherited from

DonutChart.setAutoModelLimitsStrategy


setBounds

▸ setBounds(rect): PieChart

Sets chart bounds

Parameters

Name Type Description
rectRectbounds

Returns

PieChart

this

Inherited from

DonutChart.setBounds


setCache

▸ setCache(cache, rebuild?): PieChart

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

PieChart

this

Inherited from

DonutChart.setCache


setChild

▸ setChild(index, node): PieChart

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

PieChart

this

Inherited from

DonutChart.setChild


setClipStyle

▸ setClipStyle(style): PieChart

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

PieChart

this

Inherited from

DonutChart.setClipStyle


setContentOrientation

▸ setContentOrientation(orientation): PieChart

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

PieChart

this

Inherited from

DonutChart.setContentOrientation


setCss

▸ setCss(style, merge?): PieChart

Sets CSS style. This style will be applied for all inserted elements

Parameters

Name Type Description
styleTypeCSS style to be applied to inserted elements
Optional mergebooleanmerge flag

Returns

PieChart

this

Inherited from

DonutChart.setCss


setCssClass

▸ setCssClass(name): PieChart

Sets css class name of the node to be used to apply CSS style

Parameters

Name Type Description
namestringcss class name of the node

Returns

PieChart

this

Inherited from

DonutChart.setCssClass


setCssTransform

▸ setCssTransform(transform): PieChart

Set CSS transformation

Parameters

Name Type Description
transformstring | Transformationtransformation css transformation instruction or Transformation instance

Returns

PieChart

this

Inherited from

DonutChart.setCssTransform


setData

▸ setData(data): PieChart

Sets data to display. Sends Events.Changed event at the end.

Parameters

Name Type Description
dataDatadata object

Returns

PieChart

this

Inherited from

DonutChart.setData


setDesiredHeight

▸ setDesiredHeight(value, silent?): PieChart

Sets desired height of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired height to set, use 'auto' for automatic desired height
Optional silentbooleansilent setting

Returns

PieChart

this

Inherited from

DonutChart.setDesiredHeight


setDesiredWidth

▸ setDesiredWidth(value, silent?): PieChart

Sets desired width of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired width to set
Optional silentbooleansilent setting

Returns

PieChart

this

Inherited from

DonutChart.setDesiredWidth


setFillStyle

▸ setFillStyle(fillStyle, merge?): PieChart

Sets fill style

Parameters

Name Type Description
fillStyleTypea new fill style
Optional mergebooleantrue if you want to merge fillStyle with existing attribute, false by default

Returns

PieChart

this

Inherited from

DonutChart.setFillStyle


setHorizontalFlip

▸ setHorizontalFlip(enable): PieChart

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

PieChart

this

Inherited from

DonutChart.setHorizontalFlip


setId

▸ setId(id): PieChart

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

PieChart

this

Inherited from

DonutChart.setId


setInfiniteMode

▸ setInfiniteMode(infinityMode): PieChart

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

PieChart

this

Inherited from

DonutChart.setInfiniteMode


setLayout

▸ setLayout(layout): PieChart

Associate layout with a group.

Parameters

Name Type Description
layoutRecord<string, any&gt; | Layoutlayout instance to be set or layout properties to apply

Returns

PieChart

this

Inherited from

DonutChart.setLayout


setLayoutInvalidated

▸ Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

DonutChart.setLayoutInvalidated


setLayoutStyle

▸ setLayoutStyle(layoutStyle, silent?, merge?): PieChart

specify desired layout style

Parameters

Name Type Description
layoutStyleLayoutStyle<string | number&gt; | Options<string | number&gt;desired layout style
Optional silentbooleansilent setting
Optional mergebooleantrue if you want to merge layoutStyle with existing attribute, false by default

Returns

PieChart

this

Inherited from

DonutChart.setLayoutStyle


setLineStyle

▸ setLineStyle(lineStyle): PieChart

Sets border color Returns this

Parameters

Name Type Description
lineStyleTypeline style or options

Returns

PieChart

this

Inherited from

DonutChart.setLineStyle


setLocalTransform

▸ setLocalTransform(localTransform, force?): PieChart

Sets local transformation to be used to transform from local to parent coordinate

Parameters

Name Type Description
localTransformTransformationlocal transformation for this node
Optional forcebooleanboolean flag to force update event if transformations are equal, false by default

Returns

PieChart

this

Inherited from

DonutChart.setLocalTransform


setMarginsStyle

▸ setMarginsStyle(margins, merge?): PieChart

Sets margins style

Parameters

Name Type Description
marginsType<string | number&gt;margins style
Optional mergebooleantrue if you want to merge marginsStyle with existing attribute, false by default

Returns

PieChart

this

Inherited from

DonutChart.setMarginsStyle


setModelLimits

▸ setModelLimits(limits): PieChart

Sets inner model limits

Parameters

Name Type Description
limitsTypeinner limits

Returns

PieChart

this

Inherited from

DonutChart.setModelLimits


setName

▸ setName(name): PieChart

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

PieChart

this

Inherited from

DonutChart.setName


setNotification

▸ setNotification(notify, force?): PieChart

set notification state

Parameters

Name Type Description
notifybooleanflag set to invalidate parent or not
Optional forcebooleantrue if parent should be invalidated immediately

Returns

PieChart

this

Inherited from

DonutChart.setNotification


setOpacity

▸ setOpacity(opacity, blendMode?): PieChart

Sets node opacity

Parameters

Name Type Description
opacitynumbernode opacity from 0 to 1
Optional blendModeBlendModeopacity blend mode. If it is normal, opacity will be replaced.

Returns

PieChart

this

Inherited from

DonutChart.setOpacity


setOptions

▸ setOptions(options): PieChart

Sets display options. The implementation keeps 'innerradius' equal to '0' always.

Parameters

Name Type Description
optionsOptionsoptions object (see DonutChart.setOptions for more info)

Returns

PieChart

this

Overrides

DonutChart.setOptions


setPaddingStyle

▸ setPaddingStyle(paddingStyle, merge?): PieChart

Sets padding style

Parameters

Name Type Description
paddingStyleType<string | number&gt;padding style
Optional mergebooleantrue if you want to merge paddingStyle with existing attribute, false by default

Returns

PieChart

this

Inherited from

DonutChart.setPaddingStyle


setParent

▸ setParent(parent): PieChart

Sets parent node. Don't call this method directly. It is internal method.

Parameters

Name Type Description
parentNodea parent node

Returns

PieChart

this

Inherited from

DonutChart.setParent


setProperties

▸ setProperties(properties?): PieChart

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptions & Options & { animationstyle?: Type } & { clipstyle?: GraphicsPath | ClipStyle | Options ; csscursor?: string ; cssstyle?: string | CssStyle | Options ; localtransform?: Transformation ; margins?: Type<string | number&gt; ; opacity?: number ; opacityblendmode?: BlendMode ; renderingfilter?: IFilter ; responsivestyle?: Options | ResponsiveStyle ; scalescrollstrategy?: Delegate ; transform?: string | Transformation } & { children?: Node | Node[] ; clipping?: boolean ; infinity?: boolean } & { baselayers?: Node[] ; overlays?: Node[] } & { automodellimitsmode?: boolean ; automodellimitsstrategy?: ModelLimitsStrategy ; bounds?: Type ; contentorientation?: Orientation ; fillstyle?: Type ; horizontalflip?: boolean ; layout?: Layout ; layoutstyle?: LayoutStyle<string | number&gt; | Options<string | number&gt; ; linestyle?: Type ; modellimits?: &amp;quot;auto&amp;quot; | Rect ; padding?: Type<string | number&gt; ; pickingchildren?: boolean ; verticalflip?: boolean ; viewcache?: boolean | ViewCache }options object

Returns

PieChart

this

Inherited from

DonutChart.setProperties


setProperty

▸ setProperty(name, value): PieChart

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

PieChart

this

Inherited from

DonutChart.setProperty


setRenderingFilter

▸ setRenderingFilter(filter): PieChart

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

PieChart

this

Inherited from

DonutChart.setRenderingFilter


setResponsiveStyle

▸ setResponsiveStyle(style): PieChart

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

PieChart

this

Inherited from

DonutChart.setResponsiveStyle


setScaleScrollStrategy

▸ setScaleScrollStrategy(strategy?): PieChart

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

PieChart

this

Inherited from

DonutChart.setScaleScrollStrategy


setSelectable

▸ setSelectable(selectable): PieChart

Allows to select node. If node is not selectable then child node is not selectable.

Parameters

Name Type Description
selectablebooleanflag to allow node selection

Returns

PieChart

this

Inherited from

DonutChart.setSelectable


setSilent

▸ setSilent(bool): PieChart

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

PieChart

this

Inherited from

DonutChart.setSilent


setTag

▸ setTag(tag): PieChart

Allows the user to associate any arbitrary object with the node.

Parameters

Name Type Description
taganyThe object to be associated with the node.

Returns

PieChart

this

Inherited from

DonutChart.setTag


setVerticalFlip

▸ setVerticalFlip(flip): PieChart

Set vertical flip of the representation

Parameters

Name Type Description
flipbooleanflag to set the vertical flip of the representation

Returns

PieChart

this

Inherited from

DonutChart.setVerticalFlip


setVisible

▸ setVisible(value): PieChart

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

PieChart

this

Inherited from

DonutChart.setVisible


setVisibleModelLimits

▸ setVisibleModelLimits(visibleModelBounds, deviceBounds?): PieChart

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

PieChart

this

Inherited from

DonutChart.setVisibleModelLimits


setZIndex

▸ setZIndex(value): PieChart

Sets z-index for node (set null for default)

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

PieChart

this

Inherited from

DonutChart.setZIndex


shear

▸ shear(shx, shy): PieChart

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

PieChart

this

Inherited from

DonutChart.shear


suspendUpdate

▸ suspendUpdate(): PieChart

Suspend auto update

Returns

PieChart

this

Inherited from

DonutChart.suspendUpdate


toString

▸ toString(): string

Returns a string representation of this object (generally the classname)

Returns

string

A string representation

Inherited from

DonutChart.toString


translate

▸ translate(tx, ty): PieChart

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

PieChart

this

Inherited from

DonutChart.translate


unregisterAnimationStyle

▸ unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

DonutChart.unregisterAnimationStyle


updateLayout

▸ updateLayout(targets?): PieChart

Updates layout(s)

Fires

Events.LayoutUpdated

Parameters

Name Type Description
Optional targetsILayoutable[]optional parameter about which element to layout

Returns

PieChart

this

Inherited from

DonutChart.updateLayout


updateSceneTransformation

▸ updateSceneTransformation(): PieChart

Update scene transformation

Returns

PieChart

this

Inherited from

DonutChart.updateSceneTransformation


updateState

▸ updateState(regions?, changes?): PieChart

Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph

Parameters

Name Type Description
Optional regionsRect[]optional array to return invalid rectangles in the parent coordinates
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

PieChart

this

Inherited from

DonutChart.updateState


updateSuspended

▸ updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

DonutChart.updateSuspended


updateTimeStamp

▸ Protected updateTimeStamp(): PieChart

Update time stamp to indicate that Node or Children has been changed.

Returns

PieChart

this

Inherited from

DonutChart.updateTimeStamp


enableSceneGraphNotification

▸ Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

DonutChart.enableSceneGraphNotification


findParent

▸ Static findParent<T&gt;(node, classType, filter?): InstanceType<T&gt;

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any&gt;

Parameters

Name Type Description
nodeNodenode to start search
classTypeTtype of the class to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

InstanceType<T&gt;

Inherited from

DonutChart.findParent

▸ Static findParent(node, classType, filter?): Node

Find root of the node with specified type

Parameters

Name Type Description
nodeNodenode to start search
classTypestringinterface name to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

Node

Inherited from

DonutChart.findParent


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

DonutChart.getClassName


isSceneGraphNotificationEnabled

▸ Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

DonutChart.isSceneGraphNotificationEnabled