Skip to content

Add spikelines to ternary plots - #8041

Open
Lexachoc wants to merge 4 commits into
plotly:mainfrom
Lexachoc:scatterternary-spikelines
Open

Lexachoc wants to merge 4 commits into
plotly:mainfrom
Lexachoc:scatterternary-spikelines

Conversation

@Lexachoc

@Lexachoc Lexachoc commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Closes #7972

Demo in #7972 (comment)

Similar to Cartesian spikelines, ternary axes support the existing spikeline attributes:

  • showspikes
  • spikecolor
  • spikethickness
  • spikedash
  • spikemode
  • spikesnap

The ternary spikelines also respect spikedistance.

Note: This implementation always displays the corresponding axis value labels (commonlabel) together with the spikelines.

In Cartesian plots, these labels are controlled by hovermode. Ternary plots currently do not have a hovermode option that fits naturally to ternary vertices, and I prefer to always show the labels together with the ternary spikelines instead, which also seems more intuitive for ternary plots. And these labels help the user to quickly understand the axis values.

The axis value labels also respect the axis attribute: hoverformat, so they use the same numeric formatting consistent with the ternary hoverlabel.

@Lexachoc
Lexachoc force-pushed the scatterternary-spikelines branch from 743b2f0 to 10fa7a4 Compare September 14, 2026 17:33
@Lexachoc

Copy link
Copy Markdown
Contributor Author

Sorry about the force-push! I noticed afterward that the guideline ask not to force-push open PR branches.

@camdecoster

Copy link
Copy Markdown
Contributor

Thanks for the PR! Our team will take a look and provide some feedback. No worries about the force push; it's mostly important for after a review starts.

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.

[FEATURE]: Spikelines in scatterternary plots

3 participants