TooltipComponentOption Type documentation¶
TypeScript declaration¶
TooltipComponentOption
interfaceimport type { TooltipComponentOption } from '@siemens/charts-ng'; -
Consider triggered from axisPointer handle, verticalAlign should be 'middle'
align?:
HorizontalAlignInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
Whether to not hide popup content automatically
alwaysShowContent?:
booleanInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
If append the tooltip element to another DOM element. Only available when renderMode is html
appendTo?:
string | HTMLElement | ((chartContainer: HTMLElement) => HTMLElement | undefined | null)¶ - deprecated
Deprecated: use appendTo: 'body' instead
-
axisPointer?:
(AxisPointerComponentOption & { axis?: "auto" | "x" | "y" | "angle" | "radius"; crossStyle?: LineStyleOption & { textStyle?: LabelOption; }; })¶ -
backgroundColor?:
stringInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
borderColor?:
stringInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
borderRadius?:
numberInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
borderWidth?:
numberInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
Specify the class name of tooltip element Only available when renderMode is html
-
confine?:
booleanInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
coord?:
CoordinateSystemDataCoordInherited from ComponentOption¶ -
coordinateSystem?:
stringInherited from ComponentOption¶ -
coordinateSystemUsage?:
CoordinateSystemUsageOptionInherited from ComponentOption¶ -
Default border color to use when there are multiple series
-
Whether enable display transition when show/hide tooltip. Defaults to
truefor backward compatibility. If set tofalse, the tooltip 'display' will be set to 'none' when hidden.@since: v6.0.0
displayTransition?:
boolean=trueInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
Whether mouse is allowed to enter the floating layer of tooltip If you need to interact in the tooltip like with links or buttons, it can be set as true.
enterable?:
booleanInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
Available when renderMode is 'html'
extraCssText?:
stringInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
formatter?:
string | TooltipFormatterCallback<TopLevelFormatterParams>Inherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
Delay of hide. milesecond.
hideDelay?:
numberInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
id?:
OptionIdInherited from ComponentOption¶ -
mainType?:
"tooltip"Inherited from ComponentOption¶ -
name?:
OptionNameInherited from ComponentOption¶ -
order?:
TooltipOrderMode¶ -
Padding between tooltip content and tooltip border.
padding?:
number | number[]Inherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
Absolution pixel [x, y] array. Or relative percent string [x, y] array. If trigger is 'item'. position can be set to 'inside' / 'top' / 'left' / 'right' / 'bottom', which is relative to the hovered element.
Support to be a callback
position?:
(string | number)[] | TooltipBuiltinPosition | TooltipPositionCallback | TooltipBoxLayoutOptionInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
'auto': use html by default, and use non-html if
documentis not defined 'html': use html for tooltip 'richText': use canvas, svg, and etc. for tooltiprenderMode?:
"auto" | TooltipRenderMode¶ -
shadowBlur?:
numberInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
shadowColor?:
stringInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
shadowOffsetX?:
numberInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
shadowOffsetY?:
numberInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
show?:
booleanInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
If show popup content
-
Delay of show. milesecond.
showDelay?:
numberInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
textStyle?:
(Pick<LabelOption<{ positionExtra: never; }>, "color" | "fontStyle" | "fontWeight" | "fontFamily" | "fontSize" | "align" | "lineHeight" | "width" | "height" | "textBorderColor" | "textBorderWidth" | "textShadowBlur" | "textShadowColor" | "textShadowOffsetX" | "textShadowOffsetY"> & { decoration?: string; })Inherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
transitionDuration?:
numberInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
Trigger only works on coordinate system.
trigger?:
"none" | "item" | "axis"¶ -
When to trigger NOTE: mousewheel may modify view by dataZoom.
triggerOn?:
"none" | "click" | "mousemove" | "mousewheel" | "mousemove|click|mousewheel"Inherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
type?:
stringInherited from ComponentOption¶ -
Formatter of value.
Will be ignored if tooltip.formatter is specified.
valueFormatter?:
((value: OptionDataValue | OptionDataValue[], dataIndex: number) => string)Inherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
verticalAlign?:
VerticalAlignInherited from CommonTooltipOption<TopLevelFormatterParams>¶ -
z?:
numberInherited from ComponentOption¶ -
zlevel?:
numberInherited from ComponentOption¶
Types Documentation¶
AxisPointerComponentOption
extends ComponentOption, Omit<CommonAxisPointerOption, 'type'> ¶import type { AxisPointerComponentOption } from '@siemens/charts-ng'; - inherited
-
animationDurationUpdate?:
inheritednumber¶ -
animationEasingUpdate?:
inheritedAnimationEasing¶ -
coord?:
CoordinateSystemDataCoordInherited from ComponentOption¶ -
coordinateSystem?:
stringInherited from ComponentOption¶ -
coordinateSystemUsage?:
CoordinateSystemUsageOptionInherited from ComponentOption¶ -
handle?:
inherited({ show?: boolean; icon?: string; size?: number | number[]; margin?: number; color?: ColorString; throttle?: number; } & ShadowOptionMixin)¶ -
id?:
OptionIdInherited from ComponentOption¶ -
label?:
inherited(LabelOption<{ positionExtra: never; }> & { precision?: "auto" | number; margin?: number; formatter?: string | ((params: LabelFormatterParams) => string); })¶ -
Available when type is 'line'
lineStyle?:
inheritedLineStyleOption<ZRColor>¶ -
link?:
AxisPointerLink[]¶ -
mainType?:
"axisPointer"Inherited from ComponentOption¶ -
name?:
OptionNameInherited from ComponentOption¶ -
seriesDataIndices?:
inherited{ seriesIndex: number; dataIndex: number; dataIndexInside: number; }[]¶ -
Available when type is 'shadow'
shadowStyle?:
inheritedAreaStyleOption<ZRColor>¶ - inherited
- inherited
-
status?:
inherited"show" | "hide"¶ - inherited
-
triggerOn?:
inherited"none" | "click" | "mousemove" | "mousemove|click"¶ - inherited
-
type?:
"none" | "line" | "shadow" | "cross"Inherited from ComponentOption¶ -
current value. When using axisPointer.handle, value can be set to define the initial position of axisPointer.
value?:
inheritedScaleDataValue¶ -
z?:
numberInherited from ComponentOption¶ -
zlevel?:
numberInherited from ComponentOption¶
Except where otherwise noted, content on this site is licensed under MIT License.