[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-657633-105":59,"doc-detail-657633-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","creating-proportional-venn-diagrams-using-google-and-sas-paper-109-2011","Creating Proportional Venn Diagrams Using Google and SAS - Paper 109-2011","","This paper presents a straightforward method to generate proportional Venn diagrams in SAS® by leveraging the API for Google charts. It explains how to construct accurate, size-proportional intersections using summary data and a simple HTML-based Google chart implementation. The discussion covers background for proportional versus non-proportional Venn representations, key input requirements for the macro (sizes, colors, overlap percentages, and labels), and practical guidance for integrating the resulting diagrams into reports.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/creating-proportional-venn-diagrams-using-google-and-sas-paper-109-2011/657633/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/creating-proportional-venn-diagrams-using-google-and-sas-paper-109-2011/657633.png","ImageObject",300,407,{"name":92,"@type":93},"gewufjwa","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-30","2026-10-26",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the paper address when creating Venn diagrams?","Question",{"text":112,"@type":113},"It addresses the need to display proportional intersection sizes, since standard Venn diagrams can be misleading when data are not evenly distributed.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How are proportional Venn diagrams generated in SAS® using Google charts?",{"text":117,"@type":113},"The paper uses Google chart APIs embedded in SAS® output via a macro, supplying overlap percentages, colors, and labels to form the diagram.",{"name":119,"@type":110,"acceptedAnswer":120},"What inputs does the VennChart macro require?",{"text":121,"@type":113},"It requires intended diagram size, chart type, hexadecimal colors for each major circle, seven overlap values totaling 100, and label values for the circles.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},657633,1792985720,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":29,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143},3985747882900,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","SAS Global Forum 2011 Coders' Corner  \nPaper 109-2011  \nCreating Proportional Venn Diagrams Using Google and SAS®  \nHillary Kruger, RTI International , Durham, NC, USA  \nABSTRACT  \nThis paper presents a simple process to create proportional Venn diagrams within SAS® using the API for Google charts. Many features are available to create a Venn that suits any need.  \nINTRODUCTION  \nData visualization has emerged as an important and engaging new topic in research. We often need to display as much information as possible in as little space as possible. One of the ways to achieve this is with proportional diagrams. While SAS® offers many complex and informative graph options, a proportional Venn diagram is not currently available. Assigned to create a proportional Venn, I investigated what was available and found Google charts. I created a proportional Venn using summary data and simple HTML (Hyper-Text Mark-up Language) code variation.  \nBACKGROUND  \nVenn diagrams show the intersection of data, which is quite useful to many scientific fields. Venn charts are relatively non-complicated, easy-to-understand charts. This simplicity can be misleading , however, if the data is not evenly distributed. The Venn diagram is an increasingly popular way to express a point, mathematical or not, as well as in research. This spike in interest may prove how Venn diagrams show quantitative data in a format that is easy for anon-scientific audience.  \nIn some scenarios, the sample sizes aren‟t important in order to show a point , like in Figure 2. In others, and for most uses in scientific research, the size of the sample or population of comparison is important, if not crucial, to the scientific process. Figure 3 shows a traditional, squared Venn. Figure 3 may appear proportional at first glance, but upon closer inspection, the numbers are not represented by the size of the squares and rectangles. The information relayed by this chart may be numerically accurate, but it is still misleading.  \nFigure 2. Figure 3.  \n(Sources: Figure 2: [http://datavis.tumblr.com/](http://datavis.tumblr.com/) ; Figure 3: [http://foofish.blogspot.com/2007/10/short-survey-on-venn](http://foofish.blogspot.com/2007/10/short-survey-on-venn)diagrams-and. html)  \nSAS Global Forum 2011 Coders' Corner  \nGOOGLE CHARTS  \nUnlike Google maps, using these features do not require a key. There are no terms of service or use. There are two types of charts: image or interactive. Interactive charts are similar to SAS® charts with drill-down functionality. Here I will be discussing image charts – or charts that use a simple URL (Uniform Resource Locator) .  \nA screen shot of the Google chart website ( [http://code.google.com/apis/charttools/](http://code.google.com/apis/charttools/)) is shown in Figure 1 .  \nFigure 1.  \nCODE  \nThe following is a very basic implementation of Google chart code which creates the three-circle Venn displayed in  \nFigure 4. (A more complex example is included in the appendix of this paper. )  \n%let A=35; %let AB=8; %let ABC=4;  \n%let B=30; %let AC=5;  \n%let C=15; %let BC=3;  \n%macro VennChart (size, type, col1, col2, col3, dat1, dat2, dat3, dat4, dat5, dat6, dat7, lab1, lab2, lab3);  \ndata _null_ ;  \nfile 'c: \\VENN .html' ;  \nput '\u003Cimg src=\"[http://chart.apis.google.com/chart?](http://chart.apis.google.com/chart?)[ ](http://chart.apis.google.com/chart?)[chs=](chs=) '\"&size.\"'  \n&cht='\"&type.\"'  \n&chco='\"&col1 .\"','\"&col2 .\"','\"&col3 .\"'  \n&chd=t:'\"&dat1 .\"','\"&dat2 .\"','\"&dat3 .\"','\"&dat4 .\"','\"&dat5 .\"','\"&dat6 .\"','\"&dat7 .\"'&chdl='\"&lab1 .\"' | '\"&lab2 .\"' | '\"&lab3 .\"'\"  \nwidth=\"300\" height=\"300\" alt=\"\" />' ;  \nrun;  \n%mend VennChart;  \n%VennChart (300x300,v,FF6342,ADDE63,63C6DE,&A .,&B .,&C .,&AB .,&AC .,&BC .,&ABC .,A,B,C);  \nSAS Global Forum 2011 Coders' Corner  \nFigure 4.  \nDETAILS  \nThe program assumes you have the following information available , specific to three-circle Venns: intended size (in DPI or Dots Per Inch2), type (V for Venn), hexadecimal","cbCaijKJiuhu4yaC","https://ap.wps.com/l/cbCaijKJiuhu4yaC","pdf",343953,"English","# Abstract\n# Introduction\n# Background\n# Google Charts\n# Code\n# Details\n# Discussion\n# Other Uses","[{\"question\":\"What problem does the paper address when creating Venn diagrams?\",\"answer\":\"It addresses the need to display proportional intersection sizes, since standard Venn diagrams can be misleading when data are not evenly distributed.\"},{\"question\":\"How are proportional Venn diagrams generated in SAS® using Google charts?\",\"answer\":\"The paper uses Google chart APIs embedded in SAS® output via a macro, supplying overlap percentages, colors, and labels to form the diagram.\"},{\"question\":\"What inputs does the VennChart macro require?\",\"answer\":\"It requires intended diagram size, chart type, hexadecimal colors for each major circle, seven overlap values totaling 100, and label values for the circles.\"}]","Creating Proportional Venn Diagrams Using Google and SAS - Paper 109-2011 | PDF",15]