Last updated

API / geotoolkit / charts / AbstractChart / AbstractChart

Namespace: AbstractChart

charts.AbstractChart.AbstractChart

Table of contents

Type Aliases

Contents

Type Aliases

EventArgs

Ƭ EventArgs: Object

Type declaration

NameType
eventargsDOMEventArgs
sample?number | string
seriesnamestring

EventMap

Ƭ EventMap: Merge<EventMap, { DesireModelLimitsChanged: void ; Updated: void ; add: ToggleableSymbolItem ; click: EventArgs ; doubleclick: EventArgs ; hover: EventArgs ; remove: ToggleableSymbolItem }>


Hits

Ƭ Hits: Record<string, number[]>


LegendFormat

Ƭ LegendFormat: (chart: AbstractChart, type: LegendType, props: Record<string, string>) => string

Type declaration

▸ (chart, type, props): string

Define legend format

Parameters
Name Type Description
chartAbstractChartcurrent chart
typeLegendType
propsRecord<string, string>
Returns

string


LegendOptions

Ƭ LegendOptions: Object

Type declaration

NameTypeDescription
bins?numberAmount of items to have in typed legend(s)
format?stringformat template for chart legend items x-series - x-series identifier y-series - y-series identifier series.unit - series unit value - series value chartname - chart name Example ts '${y-series}: ${value} m'
textstyle?Type | Type[]Text style(s) for legend items
type?LegendTypelegend type for the options to be applied
valueformat?Format | ValueFormatValue format

LegendOptionsOut

Ƭ LegendOptionsOut: Object

Type declaration

NameTypeDescription
binsnumberAmount of items to have in typed legend(s)
formatstringformat template for chart legend items x-series - x-series identifier y-series - y-series identifier series.unit - series unit value - series value Example ts '${y-series}: ${value} m'
type?LegendTypelegend type for the options to be applied
valueformatFormat | ValueFormat | nullValue format

Options

Ƭ Options: Options & { animation?: boolean | Effects | AnimationStyle | Options | Options[] | null ; axes?: Partial<Record<AxisDimensionType, string>> ; legend?: LegendOptions | LegendOptions[] ; legendformat?: LegendFormat ; series?: { selection?: string ; table?: string } ; tooltip?: SeriesTooltip ; tooltipformat?: TooltipFormat | string }

chart options


OptionsOut

Ƭ OptionsOut: Merge<OptionsOut, { axes: Partial<Record<AxisDimensionType, string>> ; legend: LegendOptionsOut | LegendOptionsOut[] ; legendformat?: LegendFormat | null ; series: { table?: string } ; tooltip: { format: string ; valueformat: Format | ValueFormat | null } ; tooltipformat: TooltipFormat | string | null }>

chart options


Series

Ƭ Series: Object

Base series properties

Type declaration

NameTypeDescription
datastringdata series identifier
field?stringdata field for values in case data is objects array
name?stringseries name to use in tooltip and legend
tooltip?SeriesTooltipTooltip settings
unit?stringUnit of the data series

SeriesTooltip

Ƭ SeriesTooltip: Object

Define Series tooltip

Type declaration

NameTypeDescription
format?stringFormat 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 Example ts '${series.symbol} The ${series.name} is {value} m'
title?stringTooltip 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
valueformat?Format | ValueFormatValue format

SeriesWithData

Ƭ SeriesWithData: Merge<Series, { data: number[] | string[] | string | Date[] | Record<string, any>[] ; field?: string ; unit?: string }>


TooltipFormat

Ƭ TooltipFormat: (selection: Record<string, number[]>, chart: AbstractChart) => string

Type declaration

▸ (selection, chart): string

Define tooltip format

Parameters
Name Type Description
selectionRecord<string, number[]>selection
chartAbstractChartcurrent chart
Returns

string

string for current selection


TooltipItem

Ƭ TooltipItem: Object

Tooltip item

Type declaration

NameTypeDescription
chart?AbstractChartChart
index?numberIndex of the sample
series{ id?: string ; list?: string ; name?: string ; symbol?: TooltipSymbolOptions ; unit?: AbstractUnit }Series info
series.id?stringSeries's id
series.list?stringList symbol's color
series.name?stringSeries's name
series.symbol?TooltipSymbolOptionsSeries's symbol
series.unit?AbstractUnitUnit of series if it exists
value?number | string | number[]Selected series value
visible?booleanFalse if tooltip item is hidden, true otherwise

ValueFormat

Ƭ ValueFormat: (value: number) => string

Type declaration

▸ (value): string

Format callback for tooltip or legend values

Parameters
Name Type Description
valuenumbervalue to be displayed
Returns

string