Skip to content

Venn Diagram Legend #17113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmoihub opened this issue Mar 22, 2022 · 1 comment · Fixed by #17799
Closed

Venn Diagram Legend #17113

cmoihub opened this issue Mar 22, 2022 · 1 comment · Fixed by #17799
Assignees
Labels
Type: Feature Request Used when a new feature is requested either directly or indirectly Type: Good for beginners

Comments

@cmoihub
Copy link

cmoihub commented Mar 22, 2022

Description of the feature

As seen in this fiddle the highcharts legend works per series rather than on a set by set basis
This is because the venn library requires the series to be an array of sets

Library related to the feature

highcharts/modules/venn

Proof of Concept/Live example for the feature

Here's a custom Legend Implementation
image

@cmoihub cmoihub added the Type: Feature Request Used when a new feature is requested either directly or indirectly label Mar 22, 2022
@pawellysy
Copy link
Contributor

pawellysy commented Mar 23, 2022

Hello, @cmoihub thanks for creating the feature request!

This is already (almost) possible via API: https://jsfiddle.net/BlackLabel/ua6vc7n4/3/
There are some small adjustments, which need to be added:

  • Add drawLegendSymbol method to VennSeries prototype.
  • Add default option legendType: 'point'
  • Extend the legend text to pick between point name and point id

(Look at the Pie series as a reference)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Request Used when a new feature is requested either directly or indirectly Type: Good for beginners
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants