Thanks to visit codestin.com
Credit goes to GitHub.com

Skip to content

Conversation

@alexshoe
Copy link
Contributor

Description:

Adds the ability to click/double-click on legend titles to toggle legend visibility, making it easier to manage complex charts with multiple legends.

Example:

layout: {
  legend: {
    title: { text: 'My Legend' },
    titleclick: 'toggle',  // toggles the legend to which the clicked title belongs
    titledoubleclick: 'toggleothers' // toggles on/off all other legends
  }
}

@alexshoe alexshoe self-assigned this Jan 28, 2026
@alexshoe alexshoe changed the title Clickable legend titles Clickable Legend Titles Jan 28, 2026
@alexshoe alexshoe linked an issue Jan 28, 2026 that may be closed by this pull request
@alexshoe alexshoe marked this pull request as ready for review January 29, 2026 18:51
@alexshoe alexshoe requested a review from emilykl January 29, 2026 18:51
@emilykl
Copy link
Contributor

emilykl commented Jan 30, 2026

@alexshoe Can you document the full API for the new properties in this PR description? Basically just the info that's in the plot schema.

@emilykl
Copy link
Contributor

emilykl commented Jan 30, 2026

@alexshoe Can you remove the image test?

You can make a Codepen and link it in the PR description for testing purposes, but this feature doesn't require adding an image test to the test suite.

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]: Clickable Legend Titles

2 participants