Last updated

API / geotoolkit / charts / AreaRangeChart / AreaRangeChart

Class: AreaRangeChart

charts.AreaRangeChart.AreaRangeChart

Chart shape to display AreaRangeChart (filled area between two series)

Hierarchy

Table of contents

Constructors
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecheckCollisionclone
connectStylecopyConstructorcreateLegendItem
createTooltipSymboldisconnectStyledispose
enableEventPropagationenumerateNodesexecute
filterformatTooltipItemgetAnimationStyle
getAnnotationOffsetgetAxisgetAxisDataType
getCachedOverlaygetClassNamegetClipStyle
getColorValuegetCssgetCssClass
getCssClassesgetCssSeriesgetCssTransform
getDataLimitsgetDataSeriesgetDataSource
getDesiredModelRangegetDesiredOffsetgetDesiredTickGenerator
getIdgetInvalidateMethodgetLegendItems
getLegendTitlegetLocalTransformgetMarginsStyle
getModelLimitsgetNamegetOpacity
getOpacityBlendModegetOrientationgetOverlay
getParentgetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRootgetScaleScrollStrategygetSceneTransform
getSelectionIdgetSeriesForLegendgetSeriesInfo
getSeriesValuegetSymbolShapegetTableId
getTaggetTooltipFormatgetTooltipItems
getVisiblegetWorldTransformgetZIndex
hasCssClasshasEventListenerhitTest
initializeinvalidateinvalidateParent
isDisposedisEventPropagationEnabledisHorizontalFlip
isNotificationEnabledisSelectableisSilent
isVerticalFlipnotifyoff
ononDataSeriesChangedonDataUpdated
onDataValuesChangedonParentChangedonSelectionStateChanged
onVisibilityChangedpostRenderingpreRendering
registerAnimationStyleremoveCssClassremoveInvalidateHandler
renderrenderAsyncrotate
scalesetAnimationStylesetAxisDataType
setClipStylesetCsssetCssClass
setCssTransformsetDataSourcesetFillStyle
setHorizontalFlipsetIdsetLocalTransform
setMarginsStylesetModelLimitssetName
setNotificationsetOpacitysetOrientation
setPolarCircularFlipsetPolarClockwiseDirectionsetPolarStartAngle
setPropertiessetPropertysetRenderingFilter
setResponsiveStylesetScaleScrollStrategysetSelectable
setSelectionIdsetSilentsetTableId
setTagsetTernaryAxesLocationsetVerticalFlip
setVisiblesetZIndexshear
syncModelLimitstoStringtooltipFormat
translateunregisterAnimationStyleupdateSceneTransformation
updateStateupdateTimeStampenableSceneGraphNotification
findParentgetClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
animationbooleanChart animation parameter (boolean to enable/disable default animation, enum for pre-installed variant, use object for custom style)
animationEffectsChart animation parameter (boolean to enable/disable default animation, enum for pre-installed variant, use object for custom style)
baselinenumberChart baseline
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyle-geometry-bounds-heightnumberHeight
clipstyle-geometry-bounds-readonlybooleanReadonly
clipstyle-geometry-bounds-widthnumberWidth
clipstyle-geometry-bounds-xnumberLeft
clipstyle-geometry-bounds-ynumberTop
clipstyleGraphicsPathClipping style
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
gapfillcutoffvaluenumberValue of the cutoff used for removing NaN valued samples. Gaps will only be 'filled' when the cutoff value is non zero
gapvaluenumberMaximum value will be used to disconnect the sample if the distance between two samples in x axis is more than specified value
idstring | numberId of the node, its a unique identifier
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
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
percentareabooleanPercent area mode flag
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
selectionsymbolSymbolOptionsDefault selection symbol options for all series
selectionsymbol-heightnumberHeight of the symbol
selectionsymbol-sizeisindevicespacebooleanKeeps size of the symbol fixed in device space and width and height are in device
selectionsymbol-stepnumberStep to filter symbols
selectionsymbol-widthnumberWidth of the symbol
showinterpolatedvaluebooleanShow interpolated value between two samples
splinebooleanTrue to display spline chart instead of polyline
stackedbooleanStacked mode flag
symbolSymbolOptionsSymbol options for all series
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
tooltipSeriesTooltipDefine default series tooltip
tooltip-formatstringFormat of series tooltip series.symbol - series symbol series.list - series list symbol series.name - series name series.id - series id series.unit - series unit series.index - series sample index value - series value
tooltip-titlestringTooltip title format template string: chartname - chart name (if specified) charttype - chart type (linechart, crossplot, etc) symbol - chart symbol (if any series have it) list - chart list symbol Series can be addressed with its name (if specified) or id (by default): seriesid.name - specific series name seriesid.value - specific series value seriesid.unit - specific series unit seriesid.symbol - specific series symbol seriesid.id - specific series identifier
tooltipformatstringTooltip format callback or template string: chartname - chart name (if specified) charttype - chart type (linechart, crossplot, etc) symbol - chart symbol (if any series have it) list - chart list symbol Series can be addressed with its name (if specified) or id (by default): seriesid.name - specific series name seriesid.value - specific series value seriesid.unit - specific series unit seriesid.symbol - specific series symbol seriesid.id - specific series identifier Data table meta info can be addressed with series.meta and full path to the property. For example: series.meta.object.field - refers to 'value' string from dataTable.setMetaData({object: {field: 'value'}})
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new AreaRangeChart(options)

new AreaRangeChart(options?)

Chart shape to display AreaRangeChart (filled area between two series)

Parameters

Name Type Description
Optional optionsOptionschart options

Overrides

AreaChart.constructor

Methods

addCssClass

addCssClass(cssclass): AreaRangeChart

Adds new css class to node

Parameters

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

Returns

AreaRangeChart

this

Inherited from

AreaChart.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): AreaRangeChart

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

AreaRangeChart

this

Inherited from

AreaChart.addInvalidateHandler


applyOpacity

Protected applyOpacity(context): AreaRangeChart

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

AreaRangeChart

this

Inherited from

AreaChart.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

AreaChart.applyResponsiveStyle


checkCollision

checkCollision(context): boolean

Check if this node is within the area being rendered by the context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if object is inside of renderable area

Inherited from

AreaChart.checkCollision


clone

clone(): Node

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

Returns

Node

clone

Inherited from

AreaChart.clone


connectStyle

connectStyle(style, type, callback): AreaRangeChart

Connects style.

This convenience method subscribes a listener to given style for the specified type.
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>function to be called

Returns

AreaRangeChart

this

Inherited from

AreaChart.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): AreaRangeChart

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

Parameters

Name Type Description
srcAbstractNodeSource to copy from
Optional deepCopybooleandeep copy

Returns

AreaRangeChart

this

Inherited from

AreaChart.copyConstructor


createLegendItem

Protected createLegendItem(series, item?): ToggleableSymbolItem

Creates legend item based on series or updating options based on item passed

Parameters

Name Type Description
seriesSeriesseries object
Optional itemToggleableSymbolItemlegend item

Returns

ToggleableSymbolItem

Inherited from

AreaChart.createLegendItem


createTooltipSymbol

Protected createTooltipSymbol(series, index?): TooltipSymbolOptions

Gets tooltip series symbol

Parameters

Name Type Description
seriesSeriesseries information
Optional indexnumbersymbol index (if there's more than one)

Returns

TooltipSymbolOptions

html to represent tooltip symbol

Inherited from

AreaChart.createTooltipSymbol


disconnectStyle

disconnectStyle(style, type, callback): AreaRangeChart

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

Parameters

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

Returns

AreaRangeChart

this

Inherited from

AreaChart.disconnectStyle


dispose

dispose(): void

Disposes this node, once disposes a node should not be used anymore.
Clear all listeners, and disconnect styles to avoid memory leaks.
Also aggressively 'cleanup' this node by setting some of its members to null.

Returns

void

Inherited from

AreaChart.dispose


enableEventPropagation

enableEventPropagation(enable): AreaRangeChart

Enable event propagation from the node hierarchy from bottom to top

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.

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) => {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

AreaRangeChart

this

Inherited from

AreaChart.enableEventPropagation


enumerateNodes

enumerateNodes(callback, target?): void

Enumerate children nodes

Parameters

Name Type Description
callbackCallback<Node>callback
Optional targetQueryBuilder<any>target

Returns

void

Inherited from

AreaChart.enumerateNodes


execute

execute(delegate): AreaRangeChart

Executes delegate and return the result. It allows us to keep all initialization calls in one place,
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: AreaRangeChart) => voidFunction to execute

Returns

AreaRangeChart

The result if any or this

Inherited from

AreaChart.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: AreaRangeChart) => T

Returns

T

Inherited from

AreaChart.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

AreaChart.filter


formatTooltipItem

formatTooltipItem(item, tooltip?): string

Format tooltip item

Parameters

Name Type Description
itemTooltipItemitem
Optional tooltipSeriesTooltiptooltip options

Returns

string

tooltip content for specified tooltip item

Inherited from

AreaChart.formatTooltipItem


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

AreaChart.getAnimationStyle


getAnnotationOffset

getAnnotationOffset(): number | SpaceStyle<string | number>

Returns device space to be added to annotations surrounding chart. Might be used for axes-overlapping visuals.

Returns

number | SpaceStyle<string | number>

Inherited from

AreaChart.getAnnotationOffset


getAxis

getAxis(dimension): string

Returns axis identifier for provided dimension if exists, null otherwise

Parameters

Name Type Description
dimensionAxisDimensionTyperequested axis dimension

Returns

string

Inherited from

AreaChart.getAxis


getAxisDataType

getAxisDataType(dimension): DataType

Returns axis data type for the provided dimension

Parameters

Name Type Description
dimensionAxisDimensionTypedimension to check

Returns

DataType

Inherited from

AreaChart.getAxisDataType


getCachedOverlay

getCachedOverlay(): CompositeNode<Node>

Returns overlay node to be layered over the chart

Returns

CompositeNode<Node>

Inherited from

AreaChart.getCachedOverlay


getClassName

getClassName(): string

Returns

string

Inherited from

AreaChart.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

AreaChart.getClipStyle


getColorValue

getColorValue(seriesId, sample): number

Returns color value for provided sample to be shared via color axis

Parameters

Name Type Description
seriesIdstringseries name identifier
samplenumbersample value

Returns

number

Inherited from

AreaChart.getColorValue


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

AreaChart.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

AreaChart.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

AreaChart.getCssClasses


getCssSeries

Protected getCssSeries(): Node[]

Returns css series to handle the chart

Returns

Node[]

Inherited from

AreaChart.getCssSeries


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

AreaChart.getCssTransform


getDataLimits

getDataLimits(): Rect

Returns chart shape limits

Returns

Rect

chart shape limits

Inherited from

AreaChart.getDataLimits


getDataSeries

getDataSeries(name): INumericalDataSeries & AbstractDataSeries<any>

Returns data series from data source after all the checks and manipulations

Parameters

Name Type Description
namestringseries name identifier

Returns

INumericalDataSeries & AbstractDataSeries<any>

Inherited from

AreaChart.getDataSeries

getDataSeries(name, dimension): NumericalDataSeries

Returns data series from data source after all the checks and manipulations

Parameters

Name Type Description
namestringseries name identifier
dimensionAxisDimensionType | DataTypedata dimension or type needed

Returns

NumericalDataSeries

Inherited from

AreaChart.getDataSeries


getDataSource

Protected getDataSource(): DataSource

Returns chart data source

Returns

DataSource

Inherited from

AreaChart.getDataSource


getDesiredModelRange

getDesiredModelRange(dimension): Range

Returns desired (default) model range for the chart along provided dimension

Parameters

Name Type Description
dimensionAxisDimensionTypedimension to check

Returns

Range

Inherited from

AreaChart.getDesiredModelRange


getDesiredOffset

getDesiredOffset(): number | SpaceStyle<string | number>

Returns device space to be added to chart model limits. Might be used to layout device-spaced shapes.

Returns

number | SpaceStyle<string | number>

Inherited from

AreaChart.getDesiredOffset


getDesiredTickGenerator

getDesiredTickGenerator(dimension): TickGenerator

Returns desired for current chart tick generator

Parameters

Name Type Description
dimensionAxisDimensionTypedimension type

Returns

TickGenerator

instance of tick generator

Inherited from

AreaChart.getDesiredTickGenerator


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

AreaChart.getId


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

AreaChart.getInvalidateMethod


getLegendItems

getLegendItems(type?): ToggleableSymbolItem[]

Returns array of chart legend items to be added to the chart legend

Parameters

Name Type
Optional typeLegendType

Returns

ToggleableSymbolItem[]

Inherited from

AreaChart.getLegendItems


getLegendTitle

Protected getLegendTitle(props, type?): string

Returns formatted legend title

Parameters

Name Type Description
propsRecord<string, string>format properties object
Optional typeLegendTypelegend type

Returns

string

Inherited from

AreaChart.getLegendTitle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

AreaChart.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

AreaChart.getMarginsStyle


getModelLimits

getModelLimits(): Rect

Returns model limits, the limits of this chart inside space

Returns

Rect

Inherited from

AreaChart.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

AreaChart.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

AreaChart.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

AreaChart.getOpacityBlendMode


getOrientation

getOrientation(): ChartOrientation

Returns chart orientation

Returns

ChartOrientation

Inherited from

AreaChart.getOrientation


getOverlay

getOverlay(): CompositeNode<Node>

Returns overlay node to be layered over the chart

Returns

CompositeNode<Node>

Inherited from

AreaChart.getOverlay


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

AreaChart.getParent


getProperties

getProperties(): OptionsOut

Returns properties

Returns

OptionsOut

object properties

Inherited from

AreaChart.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

AreaChart.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

AreaChart.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

AreaChart.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

AreaChart.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

AreaChart.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

AreaChart.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

AreaChart.getSceneTransform


getSelectionId

getSelectionId(): string

Returns identifier for shared selection series

Returns

string

Inherited from

AreaChart.getSelectionId


getSeriesForLegend

Protected getSeriesForLegend(): Series[]

Returns series for generate legend items

Returns

Series[]

Inherited from

AreaChart.getSeriesForLegend


getSeriesInfo

getSeriesInfo(id): Series[]

Parameters

Name Type
idY

Returns

Series[]

Inherited from

AreaChart.getSeriesInfo

getSeriesInfo(id): Series

Parameters

Name Type
idstring

Returns

Series

Inherited from

AreaChart.getSeriesInfo


getSeriesValue

getSeriesValue(name, sample): number

Returns value for specific series and sample

Parameters

Name Type Description
namestringseries name
samplenumbersample to return

Returns

number

Inherited from

AreaChart.getSeriesValue


getSymbolShape

getSymbolShape(sample): SymbolShape

Returns symbol shape for current sample to be shared via crosshair tool

Parameters

Name Type Description
samplenumbersample index value

Returns

SymbolShape

sample symbol

Inherited from

AreaChart.getSymbolShape


getTableId

getTableId(): string

Returns table identifier for series

Returns

string

Inherited from

AreaChart.getTableId


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

AreaChart.getTag


getTooltipFormat

Protected getTooltipFormat(): string | TooltipFormat

Returns tooltip format callback if exists

Returns

string | TooltipFormat

Inherited from

AreaChart.getTooltipFormat


getTooltipItems

getTooltipItems(selection): TooltipItem[]

Enumerate tooltip items to be used if custom tooltip formatter is not specified

Parameters

Name Type Description
selectionRecord<string, number[]>selection current selection

Returns

TooltipItem[]

Inherited from

AreaChart.getTooltipItems


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

AreaChart.getVisible


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

transform the world transform.

Inherited from

AreaChart.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

AreaChart.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

AreaChart.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

AreaChart.hasEventListener


hitTest

hitTest(area, radius?): Hits

Returns selection info with selected samples and series identifier. If chart is not selected, returns provided merge object or null if nothing provided

Parameters

Name Type Description
areaPoint | Rectarea to select
Optional radiusnumberselection radius

Returns

Hits

Inherited from

AreaChart.hitTest


initialize

Protected initialize(options): AreaRangeChart

Initializes listeners and styles after creating

Parameters

Name Type Description
optionsOptionsinitialization options

Returns

AreaRangeChart

this

Inherited from

AreaChart.initialize


invalidate

invalidate(bounds?, force?): AreaRangeChart

Invalidate area of the shape. This method invalidates parent by default. invalidated from parent to root node.

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleantrue if parent should be invalidated immediately if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed

Returns

AreaRangeChart

this

Inherited from

AreaChart.invalidate


invalidateParent

Protected invalidateParent(bounds?, force?): AreaRangeChart

Invalidate parent and notify all listeners. NOTE: Don't keep arguments of the event, because instance can be changed

Fires

Events.Invalidate

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleanforce rendering

Returns

AreaRangeChart

this

Inherited from

AreaChart.invalidateParent


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

AreaChart.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

AreaChart.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

Inherited from

AreaChart.isHorizontalFlip


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

AreaChart.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

AreaChart.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

AreaChart.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

Inherited from

AreaChart.isVerticalFlip


notify

notify<E>(type, source, args?): AreaRangeChart

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceAbstractChartsource who called the event
Optional argsEventMap[E]event arguments

Returns

AreaRangeChart

this

Inherited from

AreaChart.notify


off

off<E>(type?, callback?): AreaRangeChart

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: AreaRangeChart, args: EventMap[E]) => voidfunction to be called

Returns

AreaRangeChart

this

Inherited from

AreaChart.off


on

on<E>(type, callback): AreaRangeChart

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

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.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: AreaRangeChart, args: EventMap[E]) => voidto be called

Returns

AreaRangeChart

this

Inherited from

AreaChart.on


onDataSeriesChanged

onDataSeriesChanged(event, src, series): void

Listener for the new data series added/removed

Parameters

Name Type Description
eventSeriesAdded | SeriesRemovedevent name
srcDataSourcedata source
seriesstring[]series identifiers

Returns

void

Inherited from

AreaChart.onDataSeriesChanged


onDataUpdated

onDataUpdated(): void

Listener for the data source updated event. Could be called independently.

Returns

void

Inherited from

AreaChart.onDataUpdated


onDataValuesChanged

onDataValuesChanged(event, src, args): void

Listener for the new data values added/removed or before adding/removing

Parameters

Name Type Description
eventValuesAdding | ValuesAdded | ValuesRemoving | ValuesRemovedevent name
srcDataSourcedata source
argsObjectvalues interval added/removed
args.countnumber
args.fromnumber

Returns

void

Inherited from

AreaChart.onDataValuesChanged


onParentChanged

Protected onParentChanged(node): AreaRangeChart

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

AreaRangeChart

this

Inherited from

AreaChart.onParentChanged


onSelectionStateChanged

onSelectionStateChanged(event, src, args): void

Parameters

Returns

void

Inherited from

AreaChart.onSelectionStateChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

AreaChart.onVisibilityChanged


postRendering

Protected postRendering(context): void

To be called after rendering. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

AreaChart.postRendering


preRendering

Protected preRendering(context): void

Occurs before rendering this method sets clipping by default. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

AreaChart.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

AreaChart.registerAnimationStyle


removeCssClass

removeCssClass(cssclass): AreaRangeChart

Removes css class from node

Parameters

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

Returns

AreaRangeChart

this

Inherited from

AreaChart.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): AreaRangeChart

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

AreaRangeChart

this

Inherited from

AreaChart.removeInvalidateHandler


render

render(context): void

Renders node

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node

Returns

void

Inherited from

AreaChart.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. Default implementation creates call method "render" inside

Parameters

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

Returns

void

Inherited from

AreaChart.renderAsync


rotate

rotate(theta, x, y): AreaRangeChart

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

AreaRangeChart

this

Inherited from

AreaChart.rotate


scale

scale(xx, yy): AreaRangeChart

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

AreaRangeChart

this

Inherited from

AreaChart.scale


setAnimationStyle

setAnimationStyle(animationStyle): AreaRangeChart

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

AreaRangeChart

Inherited from

AreaChart.setAnimationStyle


setAxisDataType

setAxisDataType(dimension, type): AreaRangeChart

Sets chart axis data type for one of the dimensions

Parameters

Name Type Description
dimensionAxisDimensionTypedimension to change
typeDataTypenew data type

Returns

AreaRangeChart

Inherited from

AreaChart.setAxisDataType


setClipStyle

setClipStyle(style): AreaRangeChart

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

AreaRangeChart

this

Inherited from

AreaChart.setClipStyle


setCss

setCss(style, merge?): AreaRangeChart

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

AreaRangeChart

this

Inherited from

AreaChart.setCss


setCssClass

setCssClass(name): AreaRangeChart

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

AreaRangeChart

this

Inherited from

AreaChart.setCssClass


setCssTransform

setCssTransform(transform): AreaRangeChart

Set CSS transformation

Parameters

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

Returns

AreaRangeChart

this

Inherited from

AreaChart.setCssTransform


setDataSource

Protected setDataSource(data): AreaRangeChart

Sets chart data source

Parameters

Name Type Description
dataDataSourcedata source

Returns

AreaRangeChart

this

Inherited from

AreaChart.setDataSource


setFillStyle

setFillStyle(fillstyle?): AreaRangeChart

Sets area fill style

Parameters

Name Type Description
Optional fillstyleTypearea fillstyle

Returns

AreaRangeChart

this


setHorizontalFlip

setHorizontalFlip(flip): AreaRangeChart

Set horizontal flip of the representation

Parameters

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

Returns

AreaRangeChart

Inherited from

AreaChart.setHorizontalFlip


setId

setId(id): AreaRangeChart

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

AreaRangeChart

this

Inherited from

AreaChart.setId


setLocalTransform

setLocalTransform(localTransform, force?): AreaRangeChart

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

AreaRangeChart

this

Inherited from

AreaChart.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): AreaRangeChart

Sets margins style

Parameters

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

Returns

AreaRangeChart

this

Inherited from

AreaChart.setMarginsStyle


setModelLimits

setModelLimits(limits): AreaRangeChart

Sets inner model limits

Parameters

Name Type Description
limitsRectinner limits

Returns

AreaRangeChart

Inherited from

AreaChart.setModelLimits


setName

setName(name): AreaRangeChart

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

AreaRangeChart

this

Inherited from

AreaChart.setName


setNotification

setNotification(notify, force?): AreaRangeChart

set notification state

Parameters

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

Returns

AreaRangeChart

this

Inherited from

AreaChart.setNotification


setOpacity

setOpacity(opacity, blendMode?): AreaRangeChart

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

AreaRangeChart

this

Inherited from

AreaChart.setOpacity


setOrientation

setOrientation(orientation): AreaRangeChart

Sets chart rotated due to x- and y- axes exchange (x-axis is vertical and y-axis is horizontal). NOTE: Do not call this method directly, this is called by geotoolkit/charts/widgets/ChartWidget automatically when it handles axis orientation.

Parameters

Name Type
orientationChartOrientation

Returns

AreaRangeChart

this

Inherited from

AreaChart.setOrientation


setPolarCircularFlip

setPolarCircularFlip(flip): AreaRangeChart

Sets circular space flip direction (standard or inside-out) for polar system

Parameters

Name Type Description
flipbooleantrue for edge-to-the-center direction, false otherwise

Returns

AreaRangeChart

Inherited from

AreaChart.setPolarCircularFlip


setPolarClockwiseDirection

setPolarClockwiseDirection(clockwise): AreaRangeChart

Sets clockwise/counterclockwise direction for polar system

Parameters

Name Type Description
clockwisebooleantrue for clockwise, false otherwise

Returns

AreaRangeChart

Inherited from

AreaChart.setPolarClockwiseDirection


setPolarStartAngle

setPolarStartAngle(angle): AreaRangeChart

Sets model space start angle for polar system

Parameters

Name Type Description
anglenumberstart angle

Returns

AreaRangeChart

Inherited from

AreaChart.setPolarStartAngle


setProperties

setProperties(options?): AreaRangeChart

Sets properties

Parameters

Name Type Description
Optional optionsOptionsobject properties

Returns

AreaRangeChart

Inherited from

AreaChart.setProperties


setProperty

setProperty(name, value): AreaRangeChart

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

AreaRangeChart

this

Inherited from

AreaChart.setProperty


setRenderingFilter

setRenderingFilter(filter): AreaRangeChart

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

AreaRangeChart

this

Inherited from

AreaChart.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): AreaRangeChart

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

AreaRangeChart

this

Inherited from

AreaChart.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): AreaRangeChart

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

AreaRangeChart

this

Inherited from

AreaChart.setScaleScrollStrategy


setSelectable

setSelectable(selectable): AreaRangeChart

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

AreaRangeChart

this

Inherited from

AreaChart.setSelectable


setSelectionId

setSelectionId(id): AreaRangeChart

Sets new selection series identifier for shared states

Parameters

Name Type Description
idstringselection series identifier

Returns

AreaRangeChart

Inherited from

AreaChart.setSelectionId


setSilent

setSilent(bool): AreaRangeChart

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

AreaRangeChart

this

Inherited from

AreaChart.setSilent


setTableId

setTableId(id): AreaRangeChart

Sets new table identifier from source data tables

Parameters

Name Type Description
idstringnew table identifier

Returns

AreaRangeChart

Inherited from

AreaChart.setTableId


setTag

setTag(tag): AreaRangeChart

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

Parameters

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

Returns

AreaRangeChart

this

Inherited from

AreaChart.setTag


setTernaryAxesLocation

setTernaryAxesLocation(xLocation, yLocation): AreaRangeChart

Sets axes data locations

Parameters

Name Type Description
xLocationTernaryAxisLocationlocation for the x-series
yLocationTernaryAxisLocationlocation for the y-series

Returns

AreaRangeChart

Inherited from

AreaChart.setTernaryAxesLocation


setVerticalFlip

setVerticalFlip(flip): AreaRangeChart

Set vertical flip of the representation

Parameters

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

Returns

AreaRangeChart

Inherited from

AreaChart.setVerticalFlip


setVisible

setVisible(value): AreaRangeChart

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

AreaRangeChart

this

Inherited from

AreaChart.setVisible


setZIndex

setZIndex(value): AreaRangeChart

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

AreaRangeChart

this

Inherited from

AreaChart.setZIndex


shear

shear(shx, shy): AreaRangeChart

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

AreaRangeChart

this

Inherited from

AreaChart.shear


syncModelLimits

syncModelLimits(): AreaRangeChart

Returns

AreaRangeChart

Inherited from

AreaChart.syncModelLimits


toString

toString(): string

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

Returns

string

A string representation

Inherited from

AreaChart.toString


tooltipFormat

tooltipFormat(selection): string

Formats selection info for tooltip purposes, all info is shared between charts

Parameters

Name Type Description
selectionRecord<string, number[]>current selection info

Returns

string

Inherited from

AreaChart.tooltipFormat


translate

translate(tx, ty): AreaRangeChart

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

AreaRangeChart

this

Inherited from

AreaChart.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

AreaChart.unregisterAnimationStyle


updateSceneTransformation

updateSceneTransformation(): AreaRangeChart

Update scene transformation

Returns

AreaRangeChart

this

Inherited from

AreaChart.updateSceneTransformation


updateState

updateState(regions?, changes?): AreaRangeChart

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

AreaRangeChart

this

Inherited from

AreaChart.updateState


updateTimeStamp

Protected updateTimeStamp(): AreaRangeChart

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

Returns

AreaRangeChart

this

Inherited from

AreaChart.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

AreaChart.enableSceneGraphNotification


findParent

Static findParent<T>(node, classType, filter?): InstanceType<T>

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any>

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>

Inherited from

AreaChart.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

AreaChart.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

AreaChart.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

AreaChart.isSceneGraphNotificationEnabled