Skip to content

docs(axisPointer): document triggerOnNoData and findPointOnConnectedCharts#520

Open
aggarwal-h wants to merge 1 commit into
apache:masterfrom
aggarwal-h:feat/axispointer-trigger-on-no-data
Open

docs(axisPointer): document triggerOnNoData and findPointOnConnectedCharts#520
aggarwal-h wants to merge 1 commit into
apache:masterfrom
aggarwal-h:feat/axispointer-trigger-on-no-data

Conversation

@aggarwal-h

Copy link
Copy Markdown

Documents two new axisPointer options added in apache/echarts#21656.

Options

  • axisPointer.triggerOnNoData (boolean, default false) — when enabled, the axis pointer stays visible at a position even if there is no data there. Mainly useful for charts linked by echarts.connect: hovering one chart where a connected chart has no data keeps the pointer shown on the other chart at the linked axis value instead of hiding it.
  • axisPointer.findPointOnConnectedCharts (boolean, default true) — set to false to stop a connected chart from snapping the pointer to a sample series point, so it follows the linked axis value only.

Where

  • triggerOnNoData goes in the shared option/partial/axisPointer-common.md, so it is documented once and shown across all axisPointer contexts (x/y/radius/ angle/single/parallel axes, the axisPointer component, and tooltip.axisPointer).
  • findPointOnConnectedCharts goes in option/component/axisPointer.md, since the code reads it from the top-level axisPointer component only.

Both options are documented in English and Chinese, tagged Since v6.2.0 (please adjust if the release version differs).

Related

Verification

Ran node build/build-doc.js --env asf; the option markdown parses and both options render into option.json (en + zh) with the version badge, the echarts.connect link, and the triggerOnNoData cross-reference.

Add triggerOnNoData (shared across all axisPointer contexts) and
findPointOnConnectedCharts (component only).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant