CrossToolComponent

August 17, 2023 ยท View on GitHub

Default bundled chart cross tool.

MethodParametersReturnsDescription
registerDefaultDrawerTypesvoidRegisters default drawer types for the chart.
setVisiblevisible: booleanvoidSets the cross tool visibility.
setTypetype: stringvoidSets the crosstool type. - cross-and-labels - both the crosshair and X/Y labels
  • only-labels - only the X/Y label
  • none| |observeCrossToolChanged||BehaviorSubject<CrossToolHover>|Returns an Observable that emits the current hover subject.| |setMagnetTarget|target: MagnetTarget |void|Sets magnet target for cross tool. Supported only for 'cross-and-labels' type. Default magnet target is none.| |registerCrossToolTypeDrawer|drawerName: string - an unique drawer type namedrawerImpl: CrossToolTypeDrawer - CrossToolTypeDrawer object|void|Adds a new drawer type for cross tool, so you can add your own implementation of cross tool (or override existing)|