{"size":{"Width":576,"Height":512},"appearance":{"background":null,"padding":14,"font":{"family":"Courier New","size":10.0,"bold":false,"italic":false,"underline":false,"strikeout":false,"color":"rgb(0,72,168)"},"border":{"on":true,"size":0.0,"style":"solid","color":"#666"},"text":{"wrap":false,"hAlign":"left","vAlign":"top"}},"outputType":"WIDGET","widgetStateDict":{},"wikiPageTitle":"Visualization - Venn Diagram","outputs":{"htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-d3vennR-e836c2e8965eeddc85b4\" style=\"width:960px;height:500px;\" class=\"d3vennR html-widget\"></div>\n</div>\n<script type=\"application/json\" data-for=\"htmlwidget-d3vennR-e836c2e8965eeddc85b4\">{\"x\":{\"data\":[{\"sets\":[0],\"size\":56,\"label\":\"Sales Reduction\"},{\"sets\":[1],\"size\":25,\"label\":\"Take on Debt\"},{\"sets\":[2],\"size\":34,\"label\":\"Redundancies\"},{\"sets\":[3],\"size\":30,\"label\":\"Acquisition\"},{\"sets\":[4],\"size\":52,\"label\":\"Bad Debt\"},{\"sets\":[0,1],\"size\":19},{\"sets\":[0,2],\"size\":27},{\"sets\":[1,2],\"size\":13},{\"sets\":[0,3],\"size\":16},{\"sets\":[1,3],\"size\":6},{\"sets\":[2,3],\"size\":11},{\"sets\":[0,4],\"size\":33},{\"sets\":[1,4],\"size\":15},{\"sets\":[2,4],\"size\":21},{\"sets\":[3,4],\"size\":16},{\"sets\":[0,1,2],\"size\":11},{\"sets\":[0,1,3],\"size\":5},{\"sets\":[0,2,3],\"size\":8},{\"sets\":[1,2,3],\"size\":3},{\"sets\":[0,1,4],\"size\":13},{\"sets\":[0,2,4],\"size\":18},{\"sets\":[1,2,4],\"size\":9},{\"sets\":[0,3,4],\"size\":10},{\"sets\":[1,3,4],\"size\":5},{\"sets\":[2,3,4],\"size\":7},{\"sets\":[0,1,2,3],\"size\":3},{\"sets\":[0,1,2,4],\"size\":8},{\"sets\":[0,1,3,4],\"size\":4},{\"sets\":[0,2,3,4],\"size\":6},{\"sets\":[1,2,3,4],\"size\":3},{\"sets\":[0,1,2,3,4],\"size\":2}],\"options\":{\"padding\":null,\"colours\":null,\"fontSize\":13,\"duration\":null,\"layoutFunction\":null,\"width\":null,\"height\":null},\"tasks\":[\"\\nfunction(){\\n var colors = [\\\"#1A3F79\\\",\\\"#46A6C8\\\",\\\"#D51F2E\\\",\\\"#D2D2D2\\\",\\\"#1A3F79\\\"];\\n var fontcolors = [\\\"#000000\\\",\\\"#000000\\\",\\\"#000000\\\",\\\"#000000\\\",\\\"#000000\\\"];\\n d3.select(this).selectAll(\\\".venn-circle path\\\")\\n .style(\\\"fill\\\", function(d,i) { return colors[i]; })\\n .style(\\\"fill-opacity\\\", 0.25)\\n d3.select(this).selectAll(\\\".venn-circle text\\\")\\n .style(\\\"font-family\\\", \\\"Arial\\\")\\n .style(\\\"fill\\\", function(d,i) { return fontcolors[i]; })\\n}\",\"\\nfunction(){\\n var div = d3.select(this);\\n\\n // add a tooltip\\n var tooltip = d3.select(\\\"body\\\").append(\\\"div\\\")\\n .attr(\\\"class\\\", \\\"venntooltip\\\")\\n .style(\\\"position\\\", \\\"absolute\\\")\\n .style(\\\"text-align\\\", \\\"center\\\")\\n .style(\\\"background\\\", \\\"#333\\\")\\n .style(\\\"color\\\",\\\"#ddd\\\")\\n .style(\\\"padding\\\",\\\"4px\\\")\\n .style(\\\"border\\\",\\\"0px\\\")\\n .style(\\\"border-radius\\\",\\\"2px\\\")\\n .style(\\\"opacity\\\",0);\\n\\n div.selectAll(\\\"path\\\")\\n .style(\\\"stroke-opacity\\\", 0)\\n .style(\\\"stroke\\\", \\\"#fff\\\")\\n .style(\\\"stroke-width\\\", 0)\\n\\n // add listeners to all the groups to display tooltip on mousover\\n div.selectAll(\\\"g\\\")\\n .on(\\\"mouseover\\\", function(d, i) {\\n\\n // sort all the areas relative to the current item\\n venn.sortAreas(div, d);\\n\\n // Display a tooltip with the current size\\n tooltip.transition().duration(400).style(\\\"opacity\\\", .9);\\n tooltip.text(d.size + \\\"%\\\")\\n .style(\\\"font\\\", \\\"15px Arial\\\")\\n .style(\\\"font-weight\\\", \\\"bold\\\");\\n\\n // highlight the current path\\n var selection = d3.select(this).transition(\\\"tooltip\\\").duration(400);\\n selection.select(\\\"path\\\")\\n .style(\\\"stroke-width\\\", 3)\\n .style(\\\"fill-opacity\\\", d.sets.length == 1 ? .4 : .1)\\n .style(\\\"stroke-opacity\\\", 1);\\n })\\n\\n .on(\\\"mousemove\\\", function() {\\n tooltip.style(\\\"left\\\", (d3.event.pageX) + \\\"px\\\")\\n .style(\\\"top\\\", (d3.event.pageY - 28) + \\\"px\\\");\\n })\\n\\n .on(\\\"mouseout\\\", function(d, i) {\\n tooltip.transition().duration(400).style(\\\"opacity\\\", 0);\\n var selection = d3.select(this).transition(\\\"tooltip\\\").duration(400);\\n selection.select(\\\"path\\\")\\n .style(\\\"stroke-width\\\", 0)\\n .style(\\\"fill-opacity\\\", d.sets.length == 1 ? 0.25: .0)\\n .style(\\\"stroke-opacity\\\", 0);\\n });\\n}\"]},\"evals\":[\"tasks.0\",\"tasks.1\"],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-d3vennR-e836c2e8965eeddc85b4\">{\"viewer\":{\"width\":450,\"height\":350,\"padding\":15,\"fill\":true},\"browser\":{\"width\":960,\"height\":500,\"padding\":0,\"fill\":true}}</script>","htmlwidget-head":"{\"stylesheets\":[],\"javascript\":[\"https://widget-cdn.displayr.com/htmlwidgets-6cabca0c86673a16e87f512b1020050a.js\",\"https://widget-cdn.displayr.com/d3.min-71d54facd39bf76cb2091e3062b1c0fb.js\",\"https://widget-cdn.displayr.com/venn.min-531f6342b5663f3b5612d26a9acfc086.js\",\"https://widget-cdn.displayr.com/mds-6d96d56ee7a279bfa6af58b2014d4aae.js\",\"https://widget-cdn.displayr.com/numeric.min-321e5a4526f76450fdead083a9ad1ab6.js\",\"https://widget-cdn.displayr.com/d3vennR-efcdecb5a80aae82dba87635baa67fc5.js\"],\"attachments\":[],\"widget-cannot-re-render\":false,\"package\":\"d3vennR\",\"package_version\":\"0.1.1\"}","warning":""},"secondsTaken":0.703,"updated":"2020-05-07T12:34:55.8935672Z","lastUpdatedMessage":null,"executedCode":null,"lastSavedCode":null,"highlightedCodeSpans":[{"start":177,"length":13,"index":4},{"start":311,"length":13,"index":4},{"start":1740,"length":13,"index":4},{"start":2352,"length":13,"index":4},{"start":2368,"length":7,"index":6},{"start":2377,"length":17,"index":6},{"start":5259,"length":7,"index":6},{"start":5268,"length":13,"index":4},{"start":5543,"length":11,"index":4},{"start":5826,"length":11,"index":4},{"start":6051,"length":13,"index":4},{"start":9701,"length":13,"index":4},{"start":9717,"length":7,"index":6},{"start":9726,"length":17,"index":6},{"start":12423,"length":13,"index":4},{"start":13782,"length":13,"index":4},{"start":14306,"length":13,"index":4},{"start":14369,"length":13,"index":4},{"start":17901,"length":13,"index":4},{"start":22213,"length":29,"index":4},{"start":33082,"length":13,"index":4}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":true,"calculating":"Idle","showDebug":false,"layout":"OutputOnly","vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Automatic","warnSlow":true,"Options":{"debugconsole":false,"codeposition":"OutputOnly","splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Automatic","warn slow":true}}