VisActor/VChart

[Feature] support contains relation in venn chart

Open

#2,847 opened on Jun 24, 2024

View on GitHub
 (2 comments) (0 reactions) (1 assignee)TypeScript (1,800 stars) (212 forks)user submission
good first issue

Description

What problem does this feature solve?

Support chart like this: img_v3_02c5_d35ae1d8-65d1-4f78-8e0b-616f546379hu

What does the proposed API look like?

  data: {
    values: [
      // rest value
      { sets: [], value 6 },

      { sets: ['A'], value: 8 },
      { sets: ['B'], value: 10 },
      { sets: ['C'], value: 12 },
      { sets: ['A', 'B'], value: 4 },
      { sets: ['A', 'C'], value: 4 },
      { sets: ['B', 'C'], value: 4 },
      { sets: ['A', 'B', 'C'], value: 2 }
    ]

Contributor guide