Last updated

API / geotoolkit / widgets / TimeSeriesWidget / TimeSeriesWidget

Namespace: TimeSeriesWidget

widgets.TimeSeriesWidget.TimeSeriesWidget

Table of contents

Type Aliases

Contents

Type Aliases

AddAnnotationOptions

Ƭ AddAnnotationOptions: AnnotationOptions & { curveid?: string ; symbol?: string ; time?: number }

json object that represents the annotation options


AnnotationLineOptions

Ƭ AnnotationLineOptions: Options & { alignment?: AnchorType ; angle?: number ; fillstyle?: Type ; linestyle?: Type ; linevisible?: boolean ; point?: Point ; text?: string ; textstyle?: Type ; textvisible?: boolean }


AnnotationLineOptionsOut

Ƭ AnnotationLineOptionsOut: OptionsOut & { alignment: AnchorType ; angle: number ; label: string ; linevisible: boolean ; point: Point ; text: string ; textstyle: TextStyle | null ; textvisible: boolean }


AnnotationOptions

Ƭ AnnotationOptions: Options & { fillstyle?: Type ; label?: string ; linestyle?: Type ; point?: Point ; symbol?: string | PainterFunction ; symbolsize?: number ; textbackground?: Type ; textstyle?: Type ; timeseriesobject?: TimeSeriesObject }


AnnotationOptionsOut

Ƭ AnnotationOptionsOut: Merge<OptionsOut, { fillstyle: FillStyle | null ; label: string ; linestyle: LineStyle | null ; point: Point ; symbol: string ; symbolsize: number ; textbackground: Type ; textstyle: Type ; timeseriesobject: TimeSeriesObject }>


BarHighlighting

Ƭ BarHighlighting: Object

Bar to highlight

Type declaration

NameTypeDescription
datapointindexnumberIndex of data in x coordinate
lineindexnumberIndex of curve

BarHighlightingCallback

Ƭ BarHighlightingCallback: (highlightBar: BarHighlighting, linestyle: LineStyle, fillstyle: FillStyle) => BarHighlightingStyle

Type declaration

▸ (highlightBar, linestyle, fillstyle): BarHighlightingStyle

Callback for highlighting method

Parameters
Name Type
highlightBarBarHighlighting
linestyleLineStyle
fillstyleFillStyle
Returns

BarHighlightingStyle


BarHighlightingStyle

Ƭ BarHighlightingStyle: Object

Defines bar highlighting style

Type declaration

NameTypeDescription
fillstyleFillStyle | nullFill style of series for highlighted bar
linestyleLineStyle | nullLine style of series for highlighted bar

BarMode

Ƭ BarMode: Object

Options for bar mode

Type declaration

NameTypeDescription
barvaluevisibility?boolean | numberBar values visible distance in device space of TimeSeriesBar
highlightingmethod?BarHighlightingCallbackBar highlighting method
renderingorder?BarRenderingOrderCallbackDetermine rendering order of each bar. By default, bars will be rendered in the order of bar series when it was added

BarModeOut

Ƭ BarModeOut: Required<BarMode>

Options for bar mode


BarRenderingOrderCallback

Ƭ BarRenderingOrderCallback: (valueOrderPairs: BarValueOrderPair[]) => BarValueOrderPair[]

Type declaration

▸ (valueOrderPairs): BarValueOrderPair[]

Callback for renderingOrder

Parameters
Name Type
valueOrderPairsBarValueOrderPair[]
Returns

BarValueOrderPair[]


BarValueOrderPair

Ƭ BarValueOrderPair: Object

Defines value order pair

Type declaration

NameTypeDescription
heightnumberHeight of bar in model space
ordernumberThe original rendering order of the series
valuenumberValue of bar

CurveData

Ƭ CurveData: Object

Defines curve data

Type declaration

NameTypeDescription
colorstringCurve color in css
curveTimeSeriesLineCurve object
idstringCurve id
indexnumberIndex of x coordinate
namestringCurve name
originalunitAbstractUnit | stringCurve original unit
originalvaluenumberCurve value
positionnumberCurve x coordinate in model space
symbolSymbolShapeCurve symbol
unitstringCurve value unit
valuenumberCurve y coordinate in model space

CurveOptions

Ƭ CurveOptions: Object

Type declaration

NameTypeDescription
curvesymbol?SymbolOptionsCurve symbol setting
dataDataTableViewCurve data
id?stringCurve id, defaults to uri if unspecified
namestringCurve name
position?numberPosition or order of the curve
propertiesCurvePropertiesCurve properties
referencelines?(string | ReferenceLineData)[]The reference lines should connect to the curve. New reference lines will be created if specified data objects for the reference lines instead of existed reference line ids.
uristringCurve unique id, it will also be used with the associated TimeSeriesObject

CurveProperties

Ƭ CurveProperties: Omit<CurveOptions, "title" | "microposition"> & AxisOptions & { id?: string }


EditAnnotation

Ƭ EditAnnotation: Merge<AnnotationOptions, AnnotationLineOptions>


EventMap

Ƭ EventMap: EventMap & { beforeSelectionChange: SelectionChangeEventArgs ; onAnnotationClick: string ; onAnnotationLineClick: string ; onCursorChanged: Point ; onSelectionChanged: SelectionChangeEventArgs ; onVisibleRangeChanged: VisibleRangeChangeEventArgs }


ExportToPDFOptions

Ƭ ExportToPDFOptions: Object

PDF options

Type declaration

NameTypeDescription
embededfonts?EmbededFont[]array of embedded fonts
footer?FooterComponentan optional PDF footer
header?HeaderComponentan optional PDF header
imagecompression?{ mode?: ImageCompression ; quality?: number ; speed?: SpeedCompression }compression options
imagecompression.mode?ImageCompressionimage compression method used to exporting pdf.
imagecompression.quality?numberquality range from 0 to 1 that will express the jpeg image compression quality, available for jpeg mode only.
imagecompression.speed?SpeedCompressionspeed referring to the png compression speed, available for png mode only.
limits?{ end?: number ; start?: number }export depth or time limits
limits.end?numberend limit by default visible limits
limits.start?numberstart limit by default visible limits
output?stringdefine optional output filename
pdfstream?IWritableoptional user-customized Stream object
printsettings?DocumentExportSettingsdefine optional paper and export parameters
save?booleanflag to save the pdf directly to file or open dialog
scale?numberexport scale from model index unit to pixels by default as is
streamcompression?booleanenable or disable pdf output compression

FormatHandler

Ƭ FormatHandler: (value: number) => string

Type declaration

▸ (value): string

Parameters
Name Type
valuenumber
Returns

string


GroupOptions

Ƭ GroupOptions: Options & { curveids?: string[] | number[] ; options?: AxisOptions ; referencelines?: (string | ReferenceLineData)[] }

group id


ModelOffsets

Ƭ ModelOffsets: Object

model offsets

Type declaration

NameTypeDescription
left?string | numbermodel left offset
right?string | numbermodel right offset

NotifySelection

Ƭ NotifySelection: Object

selection event arguments

Type declaration

NameTypeDescription
idstringselection id
type?stringselection type

Options

Ƭ Options: Options & OptionsBase


OptionsBase

Ƭ OptionsBase: Object

object containing widget options

Type declaration

NameTypeDescription
alignaxis?booleanalign axis
automodellimitsmode?booleanautomodellimits mode
barmode?BarModeOptions for bar mode
cursor?{ linestyle?: Type }cursor tool options
cursor.linestyle?Typedefines linestyle for timeseries cursor tool
cursorselectionlimit?numberThreshold distance indevice space, from vertical cursor line to show symbol, update legend and show tooltip
curve?CurveOptions-
curveaxis?AxisOptionsJSON which defines curve axis
curvelimits?CurveLimitsOptionsJSON which defines curve limits area
curvesymbol?SymbolOptionsJSON which defines curve highlighting symbol
intervalbuttons?{ intervals?: Record<string, number> ; visible?: boolean }JSON which defines the interval buttons
intervalbuttons.intervals?Record<string, number>JSON which defines the text and scale value of each interval button
intervalbuttons.visible?booleanvisibility of the interval buttons
lastupdatedate?{ color?: string ; followcursor?: boolean ; font?: string ; formatter?: string | FormatHandler ; visible?: boolean }JSON which defines last update date area
lastupdatedate.color?stringlast update date text color
lastupdatedate.followcursor?booleanfalse means the last data time will be displayed and true means the cursor position data time will be displayed
lastupdatedate.font?stringlast update date text font
lastupdatedate.formatter?string | FormatHandlervisible range text formatter
lastupdatedate.visible?booleanvisibility of the last update date area
legends?{ alignwithcentermodel?: boolean ; autocolorlabel?: boolean ; direction?: Direction ; fillstyle?: Type ; height?: number ; legendoptions?: LegendOptions ; linestyle?: Type ; marginbottom?: number ; margintext?: number ; position?: LegendPosition ; visible?: boolean ; width?: number }JSON which defines legends area
legends.alignwithcentermodel?booleanaligns the legendcontainer with the centermodel when positioned outside
legends.autocolorlabel?booleanlegend's text label color
legends.direction?Directiondirection of legends (left-to-right, right-to-left)
legends.fillstyle?Type-
legends.height?numberlegends area height
legends.legendoptions?LegendOptionsJSON which defines legend options
legends.linestyle?Type-
legends.marginbottom?numberlegends area bottom margin (outside only)
legends.margintext?numberlegend text margin left and right
legends.position?LegendPositionOutside/Inside model
legends.visible?booleanvisibility of legends area
legends.width?numberif positioned inside, container width
margin?number[]array of margins of this widget [top, right, bottom, left]
model?GroupTimeseries' center model limits can be specified using this option
modelaxis?{ baselinestyle?: Type ; tickgenerator?: TickGenerator ; visible?: boolean }JSON which defines axis inside model
modelaxis.baselinestyle?Typebase linestyle for the model axis
modelaxis.tickgenerator?TickGeneratortick generator for the axis inside model
modelaxis.visible?booleanvisiblility of the axis inside model
modelgrid?{ horizontaltickgenerator?: TickGenerator ; horizontalvisibility?: { edge?: boolean ; major?: boolean ; minor?: boolean } ; verticaltickgenerator?: TickGenerator ; verticalvisibility?: { edge?: boolean ; major?: boolean ; minor?: boolean } }JSON which contains 'horizontaltickgenerator' and 'verticaltickgenerator'
modelgrid.horizontaltickgenerator?TickGeneratorHorizontal tickgenerator for the model grid. (Horizontal reference curve takes precedence over this option). Default is an instance of AdaptiveTickGenerator
modelgrid.horizontalvisibility?{ edge?: boolean ; major?: boolean ; minor?: boolean }JSON defining horizontal gridline visibility
modelgrid.horizontalvisibility.edge?boolean-
modelgrid.horizontalvisibility.major?boolean-
modelgrid.horizontalvisibility.minor?boolean-
modelgrid.verticaltickgenerator?TickGeneratorVertical tickgenerator for the model grid (default visibility of ticks is false). Default is an instance of AdaptiveDateTimeTickGenerator
modelgrid.verticalvisibility?{ edge?: boolean ; major?: boolean ; minor?: boolean }JSON defining vertical gridline visibility
modelgrid.verticalvisibility.edge?boolean-
modelgrid.verticalvisibility.major?boolean-
modelgrid.verticalvisibility.minor?boolean-
modeloffsets?ModelOffsetsOptions for model padding offsets
percent?PercentModePercent TimesSeriesWidget settings
scrollbar?{ height?: number ; options?: Options & { color?: string ; font?: string ; formatter?: string } ; tickgenerator?: TickGenerator ; type?: ScrollBarType | string ; visible?: boolean }JSON which defines scroll bar area
scrollbar.height?numberscroll bar area height
scrollbar.options?Options & { color?: string ; font?: string ; formatter?: string }Additional options to use for scrollbar (this depends on the options the specific scrollbar accepts)
scrollbar.tickgenerator?TickGenerator-
scrollbar.type?ScrollBarType | stringscroll type or className. for className use ScrollFactory#registerScrollbar first
scrollbar.visible?booleanvisibility of scroll bar area
scrolltonowbutton?{ visible?: boolean }JSON which defines the now button
scrolltonowbutton.visible?booleanvisibility of the now button
selectionstrategy?SelectionStrategyCallbackselection strategy to set
southaxis?{ color?: string ; font?: string ; height?: number ; tickgenerator?: TickGenerator ; visible?: boolean }JSON which defines south axis
southaxis.color?stringsouth axis label color
southaxis.font?stringsouth axis label font
southaxis.height?numbersouth axis height
southaxis.tickgenerator?TickGeneratortick generator for south axis. Default is an instance of AdaptiveDateTimeTickGenerator
southaxis.visible?booleanvisibility of south axis
stack?StackModeStack TimesSeriesWidget settings
timezone?TimeZoneUTC or local time
title?{ centered?: boolean ; color?: string ; font?: string ; height?: number ; padding?: number[] ; text?: string ; visible?: boolean }JSON which defines title area
title.centered?booleancenters title text
title.color?stringtitle text color
title.font?stringtitle text font
title.height?numberheight of title
title.padding?number[]array of padding for title text
title.text?stringtitle text
title.visible?booleanvisibility of title text
tooltips?{ fillstyle?: Type ; linestyle?: Type ; selectionradius?: number ; symbollinestyle?: Type ; tooltipoptions?: TooltipItemOptions & { index?: { formatter?: Format ; indextext?: string ; name?: string ; symbol?: SymbolShape ; textcolor?: string ; unittext?: string ; visible?: boolean } } ; visible?: boolean }json defining tooltips
tooltips.fillstyle?Typefillstyle of tooltip box
tooltips.linestyle?Typelinestyle of tooltip box
tooltips.selectionradius?numberradius of tooltip selection visibility
tooltips.symbollinestyle?Typeborder linestyle of tooltip symbol
tooltips.tooltipoptions?TooltipItemOptions & { index?: { formatter?: Format ; indextext?: string ; name?: string ; symbol?: SymbolShape ; textcolor?: string ; unittext?: string ; visible?: boolean } }JSON which defines tooltip options
tooltips.visible?booleantooltip visibility
viewcache?boolean-
visiblerange?{ color?: string ; font?: string ; formatter?: string | FormatHandler ; height?: number ; visible?: boolean | { max?: boolean ; min?: boolean } }JSON which defines visible range area
visiblerange.color?stringvisible range text color
visiblerange.font?stringvisible range text font
visiblerange.formatter?string | FormatHandlervisible range text formatter
visiblerange.height?numbervisible range area height
visiblerange.visible?boolean | { max?: boolean ; min?: boolean }visibility of visible range area

OptionsOut

Ƭ OptionsOut: OptionsOut & Required<OptionsBase>


PercentMode

Ƭ PercentMode: Object

Percent TimesSeriesWidget settings

Type declaration

NameTypeDescription
enabled?booleanTrue to enable time series percent mode, false otherwise
fillstyles?{ [key: string]: RgbaColor; }Percent mode time series fill styles, key of each fill style is curve id
tooltip?{ showoriginalvalue?: boolean }Tooltip option for percentage mode
tooltip.showoriginalvalue?booleanTrue to show original value along side with percentage

PercentModeOut

Ƭ PercentModeOut: Required<PercentMode>

Percent TimesSeriesWidget settings


ReferenceLineData

Ƭ ReferenceLineData: ReferenceLineOptions & Required<Pick<ReferenceLineOptions, "id">> | Required<Pick<ReferenceLineOptions, "connect">>

Reference line data


ReferenceLineOptions

Ƭ ReferenceLineOptions: Options & { connect?: string ; max?: number ; min?: number ; text?: { alignment?: AnchorType ; offset?: Options<number> ; textstyle?: Type ; visible?: boolean } ; value?: number | null }

Reference line options


ReferenceLineOptionsOuts

Ƭ ReferenceLineOptionsOuts: OptionsOut & { connect: string ; max: number ; min: number ; text: { alignment: AnchorType ; offset: SpaceStyle<number> ; textstyle: Type ; visible: boolean } ; value: number }

Reference line options get type


SelectionStrategyCallback

Ƭ SelectionStrategyCallback: (widget: TimeSeriesWidget, selection: NotifySelection, oldSelection: NotifySelection) => void

Type declaration

▸ (widget, selection, oldSelection): void

Parameters
Name Type
widgetTimeSeriesWidget
selectionNotifySelection
oldSelectionNotifySelection
Returns

void


StackMode

Ƭ StackMode: Object

Stack TimesSeriesWidget settings

Type declaration

NameTypeDescription
enabled?booleanTrue to enable time series stack area mode, false otherwise
fillstyles?{ [key: string]: RgbaColor; }Stack time series fill styles, key of each fill style is curve id

StackModeOut

Ƭ StackModeOut: Required<StackMode>

Stack TimesSeriesWidget settings


Tools

Ƭ Tools: { cursor: CrossHair ; panning: Panning ; picking: Selection ; rubberband: RubberBand ; zoom: Zoom } & Tools