I have simple venn diagramm built with d3.js and venn.js: https://jsfiddle.net/rvuf1z5o/
var sets = [
{sets: ['F'], size: 3},
{sets: ['G'], size: 3},
{sets: ['C'], size: 3},
{sets: ['F','G'], size: 1},
{sets: ['F','C'], size: 1},
{sets: ['G','C'], size: 1},
{sets: ['F','G','C']}
];
var chart = venn.VennDiagram();
var div = d3.select("#venn").datum(sets).call(chart);
I need to flip this chart by Y as shown in the picture:
How can I do it using sets / chart object / svg attrs / css?
Thank you for advice.
It looks as though you can rearrange their positions by switching around what order you declare the sets. Working jsfiddle
var sets = [
{sets: ['F'], size: 3},
{sets: ['G'], size: 3},
{sets: ['C'], size: 3},
{sets: ['G','C'], size: 1},
{sets: ['F','C'], size: 1},
{sets: ['F','G'], size: 1},
{sets: ['F','G','C']}
];
var chart = venn.VennDiagram();
var div = d3.select("#venn").datum(sets).call(chart);
The modified code is at the bottom as I had to paste in venn.js