VisActor / VChart

VChart, more than just a cross-platform charting library, but also an expressive data storyteller.
https://www.visactor.io/vchart
MIT License
769 stars 44 forks source link

[Feature] support contains relation in venn chart #2847

Open purpose233 opened 4 days ago

purpose233 commented 4 days ago

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 }
    ]