benfred / venn.js

Area proportional Venn and Euler diagrams in JavaScript
MIT License
1.04k stars 218 forks source link

Parsing a heading with each set of data #149

Open sedhha opened 4 years ago

sedhha commented 4 years ago

Here is my data to be rendered in Venn Diagram:

{
                                sets:["Selected "+el,"Total "+el],
                                size:selectedTotals[ind],
                                label: "C",
                                // I want something like title: "Diagram 1"
                            }

I want to give a title to each of the Venn Diagram elements I pass in. So that instead of looking like this: image

It should look something like this:

image

Does anyone know how to do that?