{"size":{"Width":500,"Height":450},"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","widgetState":null,"wikiPageTitle":"Visualization - Bar Chart","outputs":{"htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-08005996e759ba1d4e56\" style=\"width:100%;height:400px;\" class=\"plotly html-widget\"></div>\n</div>\n<script type=\"application/json\" data-for=\"htmlwidget-08005996e759ba1d4e56\">{\"x\":{\"visdat\":{\"10c26384925c\":[\"function () \",\"plotlyVisDat\"]},\"cur_data\":\"10c26384925c\",\"attrs\":{\"10c26384925c\":{\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20],\"x\":[0.421404682274247,0.0836120401337793,0.1438127090301,0.11371237458194,0.020066889632107,0.193979933110368],\"y\":[\"Coca-Cola\",\"Diet Coke\",\"Coke Zero\",\"Pepsi\",\"Diet Pepsi\",\"Pepsi Max\"],\"type\":\"bar\",\"orientation\":\"h\",\"marker\":{\"color\":\"rgba(92,154,211,1)\",\"line\":{\"color\":\"rgba(92,154,211,1)\",\"width\":1}},\"name\":\"Male\",\"hoverlabel\":{\"font\":{\"color\":\"#2C2C2C\",\"size\":11,\"family\":\"Arial\"}},\"hovertemplate\":\"%{y}: %{x}<extra>Male<\\/extra>\",\"legendgroup\":1,\"inherit\":true},\"10c26384925c.1\":{\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20],\"x\":[0.210702341137124,0.0418060200668896,0.0719063545150502,0.0568561872909699,0.0100334448160535,0.0969899665551839],\"y\":[0,1,2,3,4,5],\"type\":\"scatter\",\"name\":\"Male\",\"mode\":\"markers\",\"marker\":{\"color\":\"#5C9AD3\",\"opacity\":0},\"hovertemplate\":\"%{text}<extra>Male<\\/extra>\",\"text\":[\"Coca-Cola: 42%\",\"Diet Coke: 8%\",\"Coke Zero: 14%\",\"Pepsi: 11%\",\"Diet Pepsi: 2%\",\"Pepsi Max: 19%\"],\"hoverlabel\":{\"font\":{\"color\":\"#2C2C2C\",\"size\":11,\"family\":\"Arial\"},\"bgcolor\":\"#5C9AD3\"},\"showlegend\":false,\"yaxis\":\"y2\",\"inherit\":true},\"10c26384925c.2\":{\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20],\"x\":[0.435215946843854,0.122923588039867,0.20265780730897,0.0697674418604651,0.0332225913621262,0.119601328903654],\"y\":[\"Coca-Cola\",\"Diet Coke\",\"Coke Zero\",\"Pepsi\",\"Diet Pepsi\",\"Pepsi Max\"],\"type\":\"bar\",\"orientation\":\"h\",\"marker\":{\"color\":\"rgba(237,125,49,1)\",\"line\":{\"color\":\"rgba(237,125,49,1)\",\"width\":1}},\"name\":\"Female\",\"hoverlabel\":{\"font\":{\"color\":\"#2C2C2C\",\"size\":11,\"family\":\"Arial\"}},\"hovertemplate\":\"%{y}: %{x}<extra>Female<\\/extra>\",\"legendgroup\":2,\"inherit\":true},\"10c26384925c.3\":{\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20],\"x\":[0.639012655696174,0.145073834153713,0.245141612684585,0.148596095512172,0.0366781853131701,0.253780597562195],\"y\":[0,1,2,3,4,5],\"type\":\"scatter\",\"name\":\"Female\",\"mode\":\"markers\",\"marker\":{\"color\":\"#ED7D31\",\"opacity\":0},\"hovertemplate\":\"%{text}<extra>Female<\\/extra>\",\"text\":[\"Coca-Cola: 44%\",\"Diet Coke: 12%\",\"Coke Zero: 20%\",\"Pepsi: 7%\",\"Diet Pepsi: 3%\",\"Pepsi Max: 12%\"],\"hoverlabel\":{\"font\":{\"color\":\"#2C2C2C\",\"size\":11,\"family\":\"Arial\"},\"bgcolor\":\"#ED7D31\"},\"showlegend\":false,\"yaxis\":\"y2\",\"inherit\":true}},\"layout\":{\"margin\":{\"b\":47.5,\"l\":82.5,\"t\":20,\"r\":112,\"pad\":0},\"showlegend\":true,\"legend\":{\"bgcolor\":\"transparent\",\"bordercolor\":\"#2C2C2C\",\"borderwidth\":0,\"orientation\":\"v\",\"font\":{\"family\":\"Arial\",\"size\":10,\"color\":\"#2C2C2C\"},\"xanchor\":\"left\",\"yanchor\":\"auto\",\"y\":1,\"x\":1.02,\"traceorder\":\"normal\"},\"yaxis\":{\"domain\":[0,1],\"automargin\":true,\"title\":{\"text\":\"Preferred cola\",\"font\":{\"family\":\"Arial\",\"size\":12,\"color\":\"#2C2C2C\"}},\"side\":\"left\",\"type\":\"category\",\"tickfont\":{\"family\":\"Arial\",\"size\":10,\"color\":\"#2C2C2C\"},\"showline\":false,\"linecolor\":\"#000000\",\"linewidth\":[],\"showgrid\":false,\"gridwidth\":0,\"gridcolor\":\"#E1E1E1\",\"tickmode\":\"auto\",\"nticks\":[],\"tickvals\":[],\"ticktext\":[],\"ticks\":\"\",\"tickangle\":[],\"ticklen\":5,\"tickcolor\":\"#000000\",\"dtick\":[],\"tickformat\":\"\",\"tick0\":[],\"tickprefix\":\"\",\"ticksuffix\":\"\",\"hoverformat\":\"\",\"layer\":\"below traces\",\"autorange\":false,\"range\":[5.5,-0.5],\"rangemode\":\"normal\",\"zeroline\":false,\"zerolinewidth\":0,\"zerolinecolor\":\"#FFFFFF00\",\"showexponent\":\"all\",\"showtickprefix\":true,\"showticksuffix\":true,\"showticklabels\":true},\"yaxis2\":{\"overlaying\":\"y\",\"visible\":false,\"range\":[5.5,-0.5]},\"xaxis\":{\"domain\":[0,1],\"automargin\":true,\"title\":{\"text\":\"%\",\"font\":{\"family\":\"Arial\",\"size\":12,\"color\":\"#2C2C2C\"}},\"side\":\"bottom\",\"type\":\"numeric\",\"tickfont\":{\"family\":\"Arial\",\"size\":10,\"color\":\"#2C2C2C\"},\"showline\":false,\"linecolor\":\"#000000\",\"linewidth\":[],\"showgrid\":true,\"gridwidth\":1,\"gridcolor\":\"#E1E1E1\",\"tickmode\":\"auto\",\"nticks\":[],\"tickvals\":[],\"ticktext\":[],\"ticks\":\"\",\"tickangle\":[],\"ticklen\":5,\"tickcolor\":\"#000000\",\"dtick\":[],\"tickformat\":\".0%\",\"tick0\":[],\"tickprefix\":\"\",\"ticksuffix\":\"\",\"hoverformat\":\".0%\",\"layer\":\"below traces\",\"autorange\":true,\"range\":[],\"rangemode\":\"tozero\",\"zeroline\":true,\"zerolinewidth\":0,\"zerolinecolor\":\"#E1E1E1\",\"showexponent\":\"all\",\"showtickprefix\":true,\"showticksuffix\":true,\"showticklabels\":true},\"plot_bgcolor\":\"transparent\",\"paper_bgcolor\":\"transparent\",\"hoverlabel\":{\"namelength\":-1,\"bordercolor\":\"transparent\",\"font\":{\"size\":11,\"family\":\"Arial\"}},\"hovermode\":\"closest\",\"annotations\":[{\"text\":\" <br><br> \",\"font\":{\"family\":\"Arial\",\"size\":8,\"color\":\"#2C2C2C\"},\"xref\":\"paper\",\"x\":0.5,\"yref\":\"paper\",\"y\":0,\"yanchor\":\"top\",\"xanchor\":\"center\",\"showarrow\":false}],\"bargap\":0.15,\"barmode\":\"relative\"},\"source\":\"A\",\"config\":{\"showSendToCloud\":false,\"displayModeBar\":false},\"data\":[{\"x\":[0.421404682274247,0.0836120401337793,0.1438127090301,0.11371237458194,0.020066889632107,0.193979933110368],\"y\":[\"Coca-Cola\",\"Diet Coke\",\"Coke Zero\",\"Pepsi\",\"Diet Pepsi\",\"Pepsi Max\"],\"type\":\"bar\",\"orientation\":\"h\",\"marker\":{\"color\":\"rgba(92,154,211,1)\",\"line\":{\"color\":\"rgba(92,154,211,1)\",\"width\":1}},\"name\":\"Male\",\"hoverlabel\":{\"font\":{\"color\":\"#2C2C2C\",\"size\":11,\"family\":\"Arial\"}},\"hovertemplate\":[\"%{y}: %{x}<extra>Male<\\/extra>\",\"%{y}: %{x}<extra>Male<\\/extra>\",\"%{y}: %{x}<extra>Male<\\/extra>\",\"%{y}: %{x}<extra>Male<\\/extra>\",\"%{y}: %{x}<extra>Male<\\/extra>\",\"%{y}: %{x}<extra>Male<\\/extra>\"],\"legendgroup\":1,\"error_y\":{\"color\":\"rgba(31,119,180,1)\"},\"error_x\":{\"color\":\"rgba(31,119,180,1)\"},\"xaxis\":\"x\",\"yaxis\":\"y\",\"frame\":null},{\"x\":[0.210702341137124,0.0418060200668896,0.0719063545150502,0.0568561872909699,0.0100334448160535,0.0969899665551839],\"y\":[0,1,2,3,4,5],\"type\":\"scatter\",\"name\":\"Male\",\"mode\":\"markers\",\"marker\":{\"color\":\"#5C9AD3\",\"opacity\":0,\"line\":{\"color\":\"rgba(255,127,14,1)\"}},\"hovertemplate\":[\"%{text}<extra>Male<\\/extra>\",\"%{text}<extra>Male<\\/extra>\",\"%{text}<extra>Male<\\/extra>\",\"%{text}<extra>Male<\\/extra>\",\"%{text}<extra>Male<\\/extra>\",\"%{text}<extra>Male<\\/extra>\"],\"text\":[\"Coca-Cola: 42%\",\"Diet Coke: 8%\",\"Coke Zero: 14%\",\"Pepsi: 11%\",\"Diet Pepsi: 2%\",\"Pepsi Max: 19%\"],\"hoverlabel\":{\"font\":{\"color\":\"#2C2C2C\",\"size\":11,\"family\":\"Arial\"},\"bgcolor\":\"#5C9AD3\"},\"showlegend\":false,\"yaxis\":\"y2\",\"error_y\":{\"color\":\"rgba(255,127,14,1)\"},\"error_x\":{\"color\":\"rgba(255,127,14,1)\"},\"line\":{\"color\":\"rgba(255,127,14,1)\"},\"xaxis\":\"x\",\"frame\":null},{\"x\":[0.435215946843854,0.122923588039867,0.20265780730897,0.0697674418604651,0.0332225913621262,0.119601328903654],\"y\":[\"Coca-Cola\",\"Diet Coke\",\"Coke Zero\",\"Pepsi\",\"Diet Pepsi\",\"Pepsi Max\"],\"type\":\"bar\",\"orientation\":\"h\",\"marker\":{\"color\":\"rgba(237,125,49,1)\",\"line\":{\"color\":\"rgba(237,125,49,1)\",\"width\":1}},\"name\":\"Female\",\"hoverlabel\":{\"font\":{\"color\":\"#2C2C2C\",\"size\":11,\"family\":\"Arial\"}},\"hovertemplate\":[\"%{y}: %{x}<extra>Female<\\/extra>\",\"%{y}: %{x}<extra>Female<\\/extra>\",\"%{y}: %{x}<extra>Female<\\/extra>\",\"%{y}: %{x}<extra>Female<\\/extra>\",\"%{y}: %{x}<extra>Female<\\/extra>\",\"%{y}: %{x}<extra>Female<\\/extra>\"],\"legendgroup\":2,\"error_y\":{\"color\":\"rgba(44,160,44,1)\"},\"error_x\":{\"color\":\"rgba(44,160,44,1)\"},\"xaxis\":\"x\",\"yaxis\":\"y\",\"frame\":null},{\"x\":[0.639012655696174,0.145073834153713,0.245141612684585,0.148596095512172,0.0366781853131701,0.253780597562195],\"y\":[0,1,2,3,4,5],\"type\":\"scatter\",\"name\":\"Female\",\"mode\":\"markers\",\"marker\":{\"color\":\"#ED7D31\",\"opacity\":0,\"line\":{\"color\":\"rgba(214,39,40,1)\"}},\"hovertemplate\":[\"%{text}<extra>Female<\\/extra>\",\"%{text}<extra>Female<\\/extra>\",\"%{text}<extra>Female<\\/extra>\",\"%{text}<extra>Female<\\/extra>\",\"%{text}<extra>Female<\\/extra>\",\"%{text}<extra>Female<\\/extra>\"],\"text\":[\"Coca-Cola: 44%\",\"Diet Coke: 12%\",\"Coke Zero: 20%\",\"Pepsi: 7%\",\"Diet Pepsi: 3%\",\"Pepsi Max: 12%\"],\"hoverlabel\":{\"font\":{\"color\":\"#2C2C2C\",\"size\":11,\"family\":\"Arial\"},\"bgcolor\":\"#ED7D31\"},\"showlegend\":false,\"yaxis\":\"y2\",\"error_y\":{\"color\":\"rgba(214,39,40,1)\"},\"error_x\":{\"color\":\"rgba(214,39,40,1)\"},\"line\":{\"color\":\"rgba(214,39,40,1)\"},\"xaxis\":\"x\",\"frame\":null}],\"highlight\":{\"on\":\"plotly_click\",\"persistent\":false,\"dynamic\":false,\"selectize\":false,\"opacityDim\":0.2,\"selected\":{\"opacity\":1},\"debounce\":0},\"shinyEvents\":[\"plotly_hover\",\"plotly_click\",\"plotly_selected\",\"plotly_relayout\",\"plotly_brushed\",\"plotly_brushing\",\"plotly_clickannotation\",\"plotly_doubleclick\",\"plotly_deselect\",\"plotly_afterplot\"],\"base_url\":\"https://plot.ly\"},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-08005996e759ba1d4e56\">{\"viewer\":{\"width\":\"100%\",\"height\":400,\"padding\":15,\"fill\":true},\"browser\":{\"width\":\"100%\",\"height\":400,\"padding\":0,\"fill\":true}}</script>","htmlwidget-head":"{\"stylesheets\":[\"https://widget-cdn.displayr.com/crosstalk-b25ccf47e9892cf2654d5ded8a45d9b7.css\",\"https://widget-cdn.displayr.com/plotly-htmlwidgets-ef6d87e1454c6f9f50a1a5a3e8b42646.css\"],\"javascript\":[\"https://widget-cdn.displayr.com/htmlwidgets-917a66c6e5036eb1bfd1fb672a82635a.js\",\"https://widget-cdn.displayr.com/plotly-c7b3e447465c3168d867dc555864274e.js\",\"https://widget-cdn.displayr.com/typedarray.min-830ee97537deb99885d830da3312e14d.js\",\"https://widget-cdn.displayr.com/jquery.min-1a24f1a4414c2a6b5c0b9690022fc301.js\",\"https://widget-cdn.displayr.com/crosstalk.min-ffe9400acf504ca85701ad21a31e29fa.js\",\"https://widget-cdn.displayr.com/plotly-latest.min-50e5cd76a4a5d7b90468e8bb02c626a2.js\"],\"attachments\":[],\"widget-cannot-re-render\":false,\"package\":\"plotly\",\"package_version\":\"4.9.0.9000\"}","warning":""},"secondsTaken":1.8479999999999999,"updated":"2019-10-31T20:54:22.5489761Z","lastUpdatedMessage":null,"executedCode":null,"lastSavedCode":null,"highlightedCodeSpans":[{"start":177,"length":13,"index":4},{"start":311,"length":13,"index":4},{"start":1815,"length":13,"index":4},{"start":1831,"length":7,"index":6},{"start":1840,"length":17,"index":6},{"start":4742,"length":7,"index":6},{"start":4751,"length":13,"index":4},{"start":5026,"length":11,"index":4},{"start":5309,"length":11,"index":4},{"start":5534,"length":13,"index":4},{"start":8974,"length":13,"index":4},{"start":8990,"length":7,"index":6},{"start":8999,"length":17,"index":6},{"start":11720,"length":13,"index":4},{"start":11783,"length":13,"index":4},{"start":12073,"length":8,"index":4},{"start":12107,"length":13,"index":4},{"start":12138,"length":13,"index":4},{"start":15315,"length":13,"index":4},{"start":21207,"length":9,"index":4},{"start":21945,"length":10,"index":4},{"start":28618,"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}}