Last updated

API / geotoolkit / widgets / timeseries / TimeSeriesObject / TimeSeriesObject

Class: TimeSeriesObject

timeseries.TimeSeriesObject.TimeSeriesObject

TimeSeriesObject is a container of visuals used in TimeSeries Widget. It primarily lets you get and set options of the different visuals.

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
curveaxisAxisOptionsJSON which defines axis object
curveaxis-autocoloraxisbooleanSynchronize axis color with curve color
curveaxis-autocolorlabelbooleanSynchronize axis and label color with curve color
curveaxis-autolabelrotationbooleanAutomatic label rotation
curveaxis-axisautolabelrotationbooleanAxis automatic label rotation
curveaxis-axiscolorstringAxis color is autocoloraxis is false
curveaxis-axisvisiblebooleanAxis visibility
curveaxis-axiswidthnumberCurve axis width
curveaxis-baselinestyleLineStyleBase line style. Color set to curve's color, width = 1 by default
curveaxis-baselinestyle-colorstringColor in CSS form
curveaxis-baselinestyle-fillstringOptional fill style to be used to fill lines generated with this style
curveaxis-baselinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
curveaxis-baselinestyle-fill-colorstringColor in CSS form
curveaxis-baselinestyle-fill-evenoddmodebooleanEven-odd fill mode
curveaxis-baselinestyle-fill-fillpatternPatternPattern
curveaxis-baselinestyle-fill-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
curveaxis-baselinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
curveaxis-baselinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
curveaxis-baselinestyle-fill-foregroundstringForeground color
curveaxis-baselinestyle-fill-patternPatternPattern
curveaxis-baselinestyle-linecapCapStyleThe line cap style
curveaxis-baselinestyle-linedashoffsetnumberLine dash offset of dashed line
curveaxis-baselinestyle-linejoinJoinStyleThe line join style
curveaxis-baselinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
curveaxis-baselinestyle-scalablebooleanTrue if width should depend on transformation
curveaxis-baselinestyle-unitstringOptional unit for the width
curveaxis-baselinestyle-widthnumber | stringThe line thickness
curveaxis-compactbooleanCompact
curveaxis-fontstringCurve axis text font
curveaxis-labelorientationstring | numberRotation of the curveaxis labels; can be automatic, vertical, horizontal
curveaxis-labelorientationOrientationRotation of the curveaxis labels; can be automatic, vertical, horizontal
curveaxis-labeltextstringTitle text override
curveaxis-logarithmicscalebooleanLogarithmic scale
curveaxis-positionstringCurve axis position 'left'/'right'
curveaxis-textcolorstringText color if autocolorlabel is false
curveaxis-textwidthnumberCurve text width
curveaxis-tickgeneratorNumericTickGeneratorTick generator
curveaxis-tickgenerator-labelstylesTextStyleAn object containing label style for specified grades
curveaxis-tickgenerator-labelstyles-alignmentAlignmentStyleAlignment
curveaxis-tickgenerator-labelstyles-autosizebooleanAuto font size on high definition display
curveaxis-tickgenerator-labelstyles-backgroundstringBackground style
curveaxis-tickgenerator-labelstyles-backgroundFillStyleBackground style
curveaxis-tickgenerator-labelstyles-baselineBaseLineStyleBase line
curveaxis-tickgenerator-labelstyles-colorstringColor in CSS form
curveaxis-tickgenerator-labelstyles-fillFillStyleText fill style
curveaxis-tickgenerator-labelstyles-fontstringFont see
curveaxis-tickgenerator-labelstyles-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
curveaxis-tickgenerator-labelstyles-lineheightstring | numberLine height
curveaxis-tickgenerator-labelstyles-multilinebooleanAllow multi-line text
curveaxis-tickgenerator-labelstyles-outlinestringOutline style
curveaxis-tickgenerator-labelstyles-outlineLineStyleOutline style
curveaxis-tickgenerator-labelstyles-overflowwrapOverflowWrapStyleOverflow wrap
curveaxis-tickgenerator-labelstyles-strikethroughstringStrikethrough style
curveaxis-tickgenerator-labelstyles-strikethroughLineStyleStrikethrough style
curveaxis-tickgenerator-labelstyles-textoverflowTextOverflowStyleText overflow
curveaxis-tickgenerator-labelstyles-underlinestringUnderline style
curveaxis-tickgenerator-labelstyles-underlineLineStyleUnderline style
curveaxis-tickgenerator-labelstyles-underlineoffsetstring | numberUnderline offset distance
curveaxis-tickgenerator-labelstyles-whitespaceWhiteSpaceStyleWhite space
curveaxis-tickgenerator-labelstyles-wordbreakWordBreakStyleWord break
curveaxis-tickgenerator-taganyTag user can specify info associated with current object
curveaxis-tickgenerator-tickstylesLineStyleAn object containing tick styles for specified grades
curveaxis-titlerotateanglenumberTitle rotate angle
curveaxis-titlevisiblebooleanCurve axis label visibility
curveaxis-visiblebooleanVisibility of curve axis
curvelimitsCurveLimitsOptionsJavascript object used to define curvelimits properties
curvelimits-fontstring10px Arial] curve limits text font
curvelimits-marginnumberCurve limits area margin (top and bottom)
curvelimits-visiblebooleanVisibility of curve limits area
curvelimits-widthnumberWidth for each curve limits column
curvesymbolSymbolOptionsJavascript object used to define curvesymbol properties
curvesymbol-fillstylestringFillstyle of symbol
curvesymbol-fillstyleFillStyleFillstyle of symbol
curvesymbol-heightnumberHeight of symbol
curvesymbol-painterstringPainter
curvesymbol-visiblebooleanVisibility of curve highlighting symbol
curvesymbol-widthnumberWidth of symbol
idstringObject's id/uri
legenditemLegendOptionsJSON which defines legend options
legenditem-autocolorlabelboolean
legenditem-fillstylestringLegend fillstyle
legenditem-fillstyleFillStyleLegend fillstyle
legenditem-fixedwidthnumberFixed width option
legenditem-fontstring12px Arial] legend font
legenditem-heightnumberLegend height
legenditem-internalpaddingnumberLegend padding
legenditem-labelcolorstring'6b6b6b' legend text color
legenditem-linestylestringLegend border linestyle
legenditem-linestyleLineStyleLegend border linestyle
legenditem-margintextnumberMargin between edge and text of legend
legendsvisiblebooleanTrue if legend item is visible and needed
namestringObject/curve's name
tooltipitemOptionsJSON which defines tooltip options
tooltipitem-cssclassstringThe css class name of this node
tooltipitem-idstring | numberId of the node, its a unique identifier
tooltipitem-namestringName of the node. It is often used for debugging purposes or to simplify queries
tooltipitem-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
tooltipitem-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
tooltipitem-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
tooltipitem-z-indexnumberDefine node z-index
tooltipitemOptionsJSON which defines tooltip options
tooltipitem-clipstyleClipStyleClipping style
tooltipitem-clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
tooltipitem-clipstyle-geometryGraphicsPathClipping geometry
tooltipitem-clipstyle-geometry-boundsRectBounds
tooltipitem-clipstyle-geometry-bounds-heightnumberHeight
tooltipitem-clipstyle-geometry-bounds-readonlybooleanReadonly
tooltipitem-clipstyle-geometry-bounds-widthnumberWidth
tooltipitem-clipstyle-geometry-bounds-xnumberLeft
tooltipitem-clipstyle-geometry-bounds-ynumberTop
tooltipitem-clipstyleGraphicsPathClipping style
tooltipitem-csscursorstringCSS cursor associated with node
tooltipitem-cssstylestringCSS style to be applied to inserted elements
tooltipitem-localtransformTransformationLocal transformation
tooltipitem-localtransform-dxnumberX axis translation
tooltipitem-localtransform-dynumberY axis translation
tooltipitem-localtransform-xxnumberX scale
tooltipitem-localtransform-xynumberXy skew
tooltipitem-localtransform-yxnumberYx skew
tooltipitem-localtransform-yynumberY scale
tooltipitem-marginsnumber | stringIt has properties for specifying the margins for each side
tooltipitem-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
tooltipitem-opacityblendmodeBlendModeNode opacity mode to blend it
tooltipitem-scalescrollstrategyScaleScrollStrategyScale scroll strategy
tooltipitem-scalescrollstrategy-enabledbooleanEnable flag
tooltipitem-transformstringAdditional CSS transformation applied to node or 'none'
tooltipitem-transformTransformationAdditional CSS transformation applied to node or 'none'
tooltipitemOptionsJSON which defines tooltip options
tooltipitem-clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
tooltipitem-infinitybooleanMode to render outside the model limits
tooltipitemOptionsJSON which defines tooltip options
tooltipitem-automodellimitsmodebooleanAuto model limits mode
tooltipitem-boundsRectDefine position of the group in the parent
tooltipitem-contentorientationOrientationContent orientation
tooltipitem-fillstylestringFill style
tooltipitem-fillstyleFillStyleFill style
tooltipitem-horizontalflipbooleanHorizontal axis goes from right to left
tooltipitem-layoutstyleLayoutStyleLayout style to be used for parent layout
tooltipitem-layoutstyle-constraintSizeConstraintLayout constrains
tooltipitem-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
tooltipitem-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
tooltipitem-layoutstyle-floatstringFloat position
tooltipitem-layoutstyle-positionstringLayout position
tooltipitem-layoutstyle-sizenumber | stringLayout size
tooltipitem-linestylestringLine style
tooltipitem-linestyleLineStyleLine style
tooltipitem-modellimitsRectDefine inner model coordinates of the group
tooltipitem-paddingnumber | stringIt has properties for specifying the padding for each side
tooltipitem-pickingchildrenbooleanEnable picking children
tooltipitem-verticalflipbooleanVertical axis goes from bottom to top
tooltipitem-viewcachebooleanView cache to cache child nodes
tooltipitemTooltipItemOptionsJSON which defines tooltip options
tooltipitem-externalpaddingnumberExternal padding
tooltipitem-fixedwidthnumberFixed width
tooltipitem-fontstringFont
tooltipitem-heightnumberHeight
tooltipitem-internalpaddingnumberInternal padding
tooltipitem-margintextnumberMargin between edge and text of tooltip
tooltipitem-nanvisibilitybooleanIf true then tooltip also display with value NaN
tooltipitem-singlerowbooleanIf true then text display in tooltip single row
tooltipitem-symbolsizenumberSize of symbol
tooltipitem-textcolorstringText color
tooltipitem-valuevisiblebooleanValue visible
tooltipsvisiblebooleanTrue if tooltip legend item is visible and needed
uristringObject's uri

Contents

Constructors

new TimeSeriesObject(options)

new TimeSeriesObject(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

TimeSeriesObjectBase.constructor

Methods

dispose

dispose(): void

Dispose.

Returns

void

Inherited from

TimeSeriesObjectBase.dispose


getAxis

getAxis(): Axis

get axis

Returns

Axis

Inherited from

TimeSeriesObjectBase.getAxis


getAxisOptions

getAxisOptions(): AxisOptionsOut

Get axis options

Returns

AxisOptionsOut

JSON which defines curve axis

Inherited from

TimeSeriesObjectBase.getAxisOptions


getClassName

getClassName(): string

Returns

string

Inherited from

TimeSeriesObjectBase.getClassName


getCurveLimitsGroupOptions

getCurveLimitsGroupOptions(): CurveLimitsOptionsOut

Get Curve Limits group option

Returns

CurveLimitsOptionsOut


getCurveOptions

getCurveOptions(): CurveOptionsOut

Get curve options

Returns

CurveOptionsOut


getData

getData(): DataTable | DataTableView

Get curve's data

Returns

DataTable | DataTableView


getId

getId(): string

Get object's ID

Returns

string

Inherited from

TimeSeriesObjectBase.getId


getLegendOptions

getLegendOptions(): LegendOptionsOut

Get legend options

Returns

LegendOptionsOut

JSON which defines legend options


getName

getName(): string

Gets time series object name

Returns

string

Inherited from

TimeSeriesObjectBase.getName


getProperties

getProperties(): OptionsOut

Returns all properties

Returns

OptionsOut

properties object

Overrides

TimeSeriesObjectBase.getProperties


getSymbolOptions

getSymbolOptions(): SymbolOptionsOut

Get symbol options

Returns

SymbolOptionsOut


getTooltipOptions

getTooltipOptions(): TooltipOptions

Get tooltip options

Returns

TooltipOptions

JSON which defines tooltip options


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

TimeSeriesObjectBase.hasEventListener


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

TimeSeriesObjectBase.isDisposed


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

TimeSeriesObjectBase.isSilent


notify

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

Notify listeners

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEevent types
sourceTimeSeriesObjectof the event
Optional argsEventMap[E]arguments of the event

Returns

TimeSeriesObject

this

Overrides

TimeSeriesObjectBase.notify


off

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

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

Returns

TimeSeriesObject

this

Overrides

TimeSeriesObjectBase.off


on

on<E>(type, callback): TimeSeriesObject

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: TimeSeriesObject, args: EventMap[E]) => voidto be called

Returns

TimeSeriesObject

this

Overrides

TimeSeriesObjectBase.on


setAxisOptions

setAxisOptions(options?): TimeSeriesObject

Sets axis options. Refer to example below to make a curve's axis invisible. This can be useful to save space while displaying several curves that use the same vertical unit.
User would have to determine which curves share the same units and limits and hide the redundant axis.

Parameters

Name Type Description
Optional optionsAxisOptionsJSON which defines curve axis

Returns

TimeSeriesObject

Inherited from

TimeSeriesObjectBase.setAxisOptions


setCurveLimitsGroupOptions

setCurveLimitsGroupOptions(options?): TimeSeriesObject

Set curve limits group options

Parameters

Name Type Description
Optional optionsCurveLimitsOptionsJSON describing curve limits group options

Returns

TimeSeriesObject


setCurveOptions

setCurveOptions(options?): TimeSeriesObject

Set curve options

Example

// If you have several curves, which share the same unit and min&amp;max,
// you can set the min and max of each curve dynamically and independently of each other without having to recreate the widget.
// You will have to iterate through the curves which you want to update and set their min and max value as follows:
widget.getTimeSeriesObjectById(curveid).setCurveOptions(
{ 'autoscale': false, 'min': newMinValue, 'max': newMaxValue}
);

Parameters

Name Type Description
Optional optionsCurveOptionsobject containing curve options

Returns

TimeSeriesObject


setData

setData(options): TimeSeriesObject

Sets the data object for the line

Throws

if parameters indices and values are not specified properly

Parameters

Name Type Description
optionsDataTable | DataTableView | DataOptionsdata source or object to specify data source

Returns

TimeSeriesObject

this


setLegendOptions

setLegendOptions(options?): TimeSeriesObject

Set legend item options

Parameters

Name Type Description
Optional optionsLegendOptionsJSON which defines legend options

Returns

TimeSeriesObject

this


setName

Protected setName(name): void

Set time series object name

Parameters

Name Type Description
namestringname of the object

Returns

void

Inherited from

TimeSeriesObjectBase.setName


setProperties

setProperties(props?): TimeSeriesObject

Sets all properties

Parameters

Name Type Description
Optional propsOptionsprops

Returns

TimeSeriesObject

this

Overrides

TimeSeriesObjectBase.setProperties


setSilent

setSilent(bool): TimeSeriesObject

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

TimeSeriesObject

this

Inherited from

TimeSeriesObjectBase.setSilent


setSymbolOptions

setSymbolOptions(options?): TimeSeriesObject

Set symbol options

Parameters

Name Type Description
Optional optionsSymbolOptionsJSON of symbol options

Returns

TimeSeriesObject


setTooltipOptions

setTooltipOptions(options?): TimeSeriesObject

Set tooltip options

Parameters

Name Type Description
Optional optionsTooltipItemOptionsJSON which defines tooltip options

Returns

TimeSeriesObject

this


updateLayout

updateLayout(): void

Update layout if it is necessary if object is changed

Returns

void

Inherited from

TimeSeriesObjectBase.updateLayout


getClassName

Static getClassName(): string

Returns

string

Inherited from

TimeSeriesObjectBase.getClassName