{"appearance":{"background":"white","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,"outputs":{"console":"<pre class='debug-source'>>library(flipStandardCharts)\n</pre>\n<pre class='debug-source'>>dat <- if (!exists("formDataType") || formDataType == "Use an existing table") {\n formTable\n} else\n flipTransformations::ParseEnteredData(formEnteredData)\n</pre>\n<pre class='debug-source'>> \n</pre>\n<pre class='debug-source'>>chart.7 <- Chart(y = if (exists("formMultiplyBy100") && formMultiplyBy100) 100 * dat else dat,\n type = formType,\n transpose = formTranspose,\n title = formTitle,\n title.font.family = NULL,\n title.font.color = NULL,\n title.font.size = 16,\n colors = formPalette,\n colors.reverse = FALSE,\n opacity = NULL,\n background.fill.color = rgb(255, 255, 255, maxColorValue = 255),\n background.fill.opacity = 1,\n charting.area.fill.color = rgb(255, 255, 255, maxColorValue = 255),\n charting.area.fill.opacity = 1,\n legend.show = TRUE,\n legend.fill = rgb(255, 255, 255, maxColorValue = 255),\n legend.border.color = rgb(44, 44, 44, maxColorValue = 255),\n legend.border.line.width = 0,\n legend.font.color = NULL,\n legend.font.family = NULL,\n legend.font.size = 10,\n legend.position = "right",\n legend.ascending = TRUE,\n margin.top = NULL,\n margin.bottom = NULL,\n margin.left = NULL,\n margin.right = NULL,\n margin.inner.pad = NULL,\n y.title = formYTitle,\n y.title.font.color = NULL,\n y.title.font.family = NULL,\n y.title.font.size = 12,\n y.line.width = 0,\n y.line.color = rgb(0, 0, 0, maxColorValue = 255),\n y.tick.marks = "",\n y.tick.mark.length = 5,\n y.bounds.minimum = NULL,\n y.bounds.maximum = NULL,\n y.tick.distance = NULL,\n y.zero.line.width = 0,\n y.zero.line.color = rgb(44, 44, 44, maxColorValue = 255),\n y.position = "left",\n y.data.reversed = FALSE,\n y.grid.width = 1 * formShowGrid && !formType %in% c("Pie", "Donut", "Bar", "Stacked Bar", "100% Stacked Bar"),\n y.grid.color = rgb(225, 225, 225, maxColorValue = 255),\n y.tick.show = TRUE,\n y.tick.suffix = formSuffix,\n y.tick.prefix = formPrefix,\n y.tick.decimals = NULL,\n y.tick.format.manual = "",\n y.hovertext.decimals = NULL,\n y.hovertext.format.manual = "",\n y.tick.angle = NULL,\n y.tick.font.color = NULL,\n y.tick.font.family = NULL,\n y.tick.font.size = 10,\n x.title = formXTitle,\n x.title.font.color = NULL,\n x.title.font.family = NULL,\n x.title.font.size = 12,\n x.line.width = 0,\n x.line.color = rgb(0, 0, 0, maxColorValue = 255),\n x.tick.marks = "",\n x.tick.mark.length = 5,\n x.bounds.minimum = NULL,\n x.bounds.maximum = NULL,\n x.tick.distance = NULL,\n x.zero.line.width = 0,\n x.zero.line.color = rgb(44, 44, 44, maxColorValue = 255),\n x.position = "bottom",\n x.data.reversed = FALSE,\n x.grid.width = 1 * formShowGrid && !formType %in% c("Pie", "Donut", "Area", "Stacked Area", "100% Stacked Area", "Column", "Stacked Column", "100% Stacked Column", "Line"),\n x.grid.color = rgb(225, 225, 225, maxColorValue = 255),\n x.tick.show = TRUE,\n x.tick.suffix = formSuffix,\n x.tick.prefix = formPrefix,\n x.tick.decimals = NULL,\n x.tick.format.manual = "",\n x.hovertext.decimals = NULL,\n x.hovertext.format.manual = "",\n x.tick.angle = NULL,\n x.tick.font.color = NULL,\n x.tick.font.family = NULL,\n x.tick.font.size = 10,\n x.tick.label.autoformat = TRUE,\n series.marker.show = if (formType %in% c("Labeled Scatterplot", "Labeled Bubbleplot")) "automatic" else "none",\n series.marker.colors = NULL,\n series.marker.colors.reverse = FALSE,\n series.marker.opacity = 1,\n series.marker.size = 6,\n series.marker.border.width = 1,\n series.marker.border.colors = NULL,\n series.marker.border.colors.reverse = FALSE,\n series.marker.border.opacity = 1,\n series.line.width = 3,\n series.line.colors = NULL,\n series.line.colors.reverse = FALSE,\n series.line.opacity = 1,\n tooltip.show = TRUE,\n modebar.show = FALSE,\n global.font.family = "Arial",\n global.font.color = rgb(44, 44, 44, maxColorValue=255),\n rows.to.ignore = formIgnoreRows,\n cols.to.ignore = formIgnoreColumns,\n bar.gap = 0.15,\n data.label.show = formShowDataLabels,\n data.label.font.family = NULL,\n data.label.font.size = 10,\n data.label.font.color = NULL,\n data.label.decimals = formDataLabelDecimals,\n data.label.prefix = formPrefix,\n data.label.suffix = formSuffix,\n data.label.threshold = NULL,\n data.label.position = "top middle",\n pie.order = "initial",\n pie.groups.order = "initial",\n pie.subslice.colors = formPaletteOuter,\n pie.subslice.colors.reverse = FALSE,\n pie.subslice.colors.repeat = TRUE,\n pie.border.color = rgb(255, 255, 255, maxColorValue = 255),\n pie.inner.radius = formRadius,\n pie.show.percentages = formType %in% c("Pie", "Donut") && formPiePercentages,\n z.title = formZTitle,\n scatter.group.indices = formGroupIndices,\n scatter.group.labels = formGroupLabels,\n us.date.format = if (exists("formDateFormat") && formDateFormat != "Default") formDateFormat == "US (mm/dd/yyyy)" else NULL) \n</pre>\n<pre class='debug-source'>>chart.7\n</pre>\r\n<div class=\"debug-summarystatistics\">\r\n<table>\r\n<tr><th>Total time:</th><td>2.78s</td></tr>\r\n<tr><th>Time on R server:</th><td title=\"rApacheServe 2.73s (pre 0.01s, post 0.00s) httpget_code() setup for eval 0.00s session$eval 2.69s (pre 0.00s, post 0.74s) unexplained 0.03s apparmor forking (pre 0.03s, post 0.20s)\">2.73s</td></tr>\r\n<tr><th>Time evaluating code:</th><td>1.74s</td></tr>\r\n<tr><th>Bytes sent:</th><td>6,511</td></tr>\r\n<tr><th>Bytes received:</th><td>30,273</td></tr>\r\n</table>\r\n</div>","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"7de67ec5d18\" style=\"width:100%;height:400px;\" class=\"plotly html-widget\"></div>\n</div>\n<script type=\"application/json\" data-for=\"7de67ec5d18\">{\"x\":{\"visdat\":{\"7de76162c33\":[\"function () \",\"plotlyVisDat\"]},\"cur_data\":\"7de76162c33\",\"attrs\":{\"7de76162c33\":{\"alpha\":1,\"sizes\":[10,100],\"type\":\"bar\",\"x\":[0.5,0.461538461538462,0.454545454545455,0.444444444444444,0.542857142857143,0.481481481481481,0.45,0.529411764705882,0.545454545454545],\"y\":[\"18 to 24\",\"25 to 29\",\"30 to 34\",\"35 to 39\",\"40 to 44\",\"45 to 49\",\"50 to 54\",\"55 to 64\",\"65 or more\"],\"orientation\":\"h\",\"name\":\"Male\",\"legendgroup\":\"grouped\",\"marker\":{\"size\":6,\"color\":\"rgba(141,211,199,1)\",\"line\":{\"color\":\"rgba(141,211,199,1)\",\"width\":1}}},\"7de76162c33.1\":{\"alpha\":1,\"sizes\":[10,100],\"type\":\"bar\",\"x\":[0.5,0.538461538461538,0.545454545454545,0.555555555555556,0.457142857142857,0.518518518518518,0.55,0.470588235294118,0.454545454545455],\"y\":[\"18 to 24\",\"25 to 29\",\"30 to 34\",\"35 to 39\",\"40 to 44\",\"45 to 49\",\"50 to 54\",\"55 to 64\",\"65 or more\"],\"orientation\":\"h\",\"name\":\"Female\",\"legendgroup\":\"grouped\",\"marker\":{\"size\":6,\"color\":\"rgba(255,255,179,1)\",\"line\":{\"color\":\"rgba(255,255,179,1)\",\"width\":1}}}},\"layout\":{\"margin\":{\"b\":70,\"l\":80,\"t\":20,\"r\":60,\"pad\":0},\"title\":\"\",\"showlegend\":true,\"legend\":{\"bgcolor\":\"#FFFFFF\",\"bordercolor\":\"#2C2C2C\",\"borderwidth\":0,\"font\":{\"color\":\"#2C2C2C\",\"family\":\"Arial\",\"size\":10},\"xanchor\":\"left\",\"yanchor\":\"auto\",\"y\":1,\"x\":1.02,\"traceorder\":\"normal\"},\"yaxis\":{\"domain\":[0,1],\"title\":\"Q3. Age\",\"type\":\"category\",\"titlefont\":{\"color\":\"#2C2C2C\",\"family\":\"Arial\",\"size\":12},\"tickfont\":{\"color\":\"#2C2C2C\",\"family\":\"Arial\",\"size\":10},\"showline\":false,\"linecolor\":\"#000000\",\"linewidth\":[],\"tickmode\":\"auto\",\"tickvals\":[],\"ticktext\":[],\"range\":[],\"rangemode\":\"tozero\",\"ticks\":\"\",\"tickangle\":[],\"ticklen\":0,\"tickcolor\":\"#000000\",\"dtick\":[],\"zeroline\":false,\"zerolinewidth\":0,\"zerolinecolor\":\"#2C2C2C\",\"tickformat\":\".f\",\"tickprefix\":\"\",\"ticksuffix\":\"\",\"autorange\":\"reversed\",\"side\":\"left\",\"gridwidth\":false,\"gridcolor\":\"#E1E1E1\",\"showgrid\":false,\"hoverformat\":\".2f\",\"showexponent\":\"all\",\"showtickprefix\":true,\"showticksuffix\":true,\"showticklabels\":true},\"xaxis\":{\"domain\":[0,1],\"title\":\"n\",\"type\":\"linear\",\"titlefont\":{\"color\":\"#2C2C2C\",\"family\":\"Arial\",\"size\":12},\"tickfont\":{\"color\":\"#2C2C2C\",\"family\":\"Arial\",\"size\":10},\"showline\":false,\"linecolor\":\"#000000\",\"linewidth\":[],\"tickmode\":\"auto\",\"tickvals\":[],\"ticktext\":[],\"range\":[],\"ticks\":\"\",\"tickangle\":[],\"ticklen\":5,\"tickcolor\":\"#000000\",\"dtick\":[],\"zeroline\":false,\"zerolinewidth\":0,\"zerolinecolor\":\"#2C2C2C\",\"tickformat\":\"%\",\"tickprefix\":\"\",\"ticksuffix\":\"\",\"autorange\":true,\"side\":\"bottom\",\"gridwidth\":true,\"gridcolor\":\"#E1E1E1\",\"showgrid\":true,\"hoverformat\":\".2f\",\"showexponent\":\"all\",\"showtickprefix\":true,\"showticksuffix\":true,\"showticklabels\":true},\"plot_bgcolor\":\"rgba(255,255,255,1)\",\"paper_bgcolor\":\"rgba(255,255,255,1)\",\"hovermode\":\"closest\",\"titlefont\":{\"family\":\"Arial\",\"color\":\"#2C2C2C\",\"size\":16},\"font\":{\"family\":\"Arial\",\"color\":\"#2C2C2C\",\"size\":10},\"bargap\":0.15,\"barmode\":\"stack\"},\"source\":\"A\",\"config\":{\"modeBarButtonsToAdd\":[{\"name\":\"Collaborate\",\"icon\":{\"width\":1000,\"ascent\":500,\"descent\":-50,\"path\":\"M487 375c7-10 9-23 5-36l-79-259c-3-12-11-23-22-31-11-8-22-12-35-12l-263 0c-15 0-29 5-43 15-13 10-23 23-28 37-5 13-5 25-1 37 0 0 0 3 1 7 1 5 1 8 1 11 0 2 0 4-1 6 0 3-1 5-1 6 1 2 2 4 3 6 1 2 2 4 4 6 2 3 4 5 5 7 5 7 9 16 13 26 4 10 7 19 9 26 0 2 0 5 0 9-1 4-1 6 0 8 0 2 2 5 4 8 3 3 5 5 5 7 4 6 8 15 12 26 4 11 7 19 7 26 1 1 0 4 0 9-1 4-1 7 0 8 1 2 3 5 6 8 4 4 6 6 6 7 4 5 8 13 13 24 4 11 7 20 7 28 1 1 0 4 0 7-1 3-1 6-1 7 0 2 1 4 3 6 1 1 3 4 5 6 2 3 3 5 5 6 1 2 3 5 4 9 2 3 3 7 5 10 1 3 2 6 4 10 2 4 4 7 6 9 2 3 4 5 7 7 3 2 7 3 11 3 3 0 8 0 13-1l0-1c7 2 12 2 14 2l218 0c14 0 25-5 32-16 8-10 10-23 6-37l-79-259c-7-22-13-37-20-43-7-7-19-10-37-10l-248 0c-5 0-9-2-11-5-2-3-2-7 0-12 4-13 18-20 41-20l264 0c5 0 10 2 16 5 5 3 8 6 10 11l85 282c2 5 2 10 2 17 7-3 13-7 17-13z m-304 0c-1-3-1-5 0-7 1-1 3-2 6-2l174 0c2 0 4 1 7 2 2 2 4 4 5 7l6 18c0 3 0 5-1 7-1 1-3 2-6 2l-173 0c-3 0-5-1-8-2-2-2-4-4-4-7z m-24-73c-1-3-1-5 0-7 2-2 3-2 6-2l174 0c2 0 5 0 7 2 3 2 4 4 5 7l6 18c1 2 0 5-1 6-1 2-3 3-5 3l-174 0c-3 0-5-1-7-3-3-1-4-4-5-6z\"},\"click\":\"function(gd) { \\n // is this being viewed in RStudio?\\n if (location.search == '?viewer_pane=1') {\\n alert('To learn about plotly for collaboration, visit:\\\\n https://cpsievert.github.io/plotly_book/plot-ly-for-collaboration.html');\\n } else {\\n window.open('https://cpsievert.github.io/plotly_book/plot-ly-for-collaboration.html', '_blank');\\n }\\n }\"}],\"cloud\":false,\"displayModeBar\":false},\"data\":[{\"type\":\"bar\",\"x\":[0.5,0.461538461538462,0.454545454545455,0.444444444444444,0.542857142857143,0.481481481481481,0.45,0.529411764705882,0.545454545454545],\"y\":[\"18 to 24\",\"25 to 29\",\"30 to 34\",\"35 to 39\",\"40 to 44\",\"45 to 49\",\"50 to 54\",\"55 to 64\",\"65 or more\"],\"orientation\":\"h\",\"name\":\"Male\",\"legendgroup\":\"grouped\",\"marker\":{\"fillcolor\":\"rgba(31,119,180,1)\",\"color\":\"rgba(141,211,199,1)\",\"size\":6,\"line\":{\"color\":\"rgba(141,211,199,1)\",\"width\":1}},\"xaxis\":\"x\",\"yaxis\":\"y\",\"frame\":null},{\"type\":\"bar\",\"x\":[0.5,0.538461538461538,0.545454545454545,0.555555555555556,0.457142857142857,0.518518518518518,0.55,0.470588235294118,0.454545454545455],\"y\":[\"18 to 24\",\"25 to 29\",\"30 to 34\",\"35 to 39\",\"40 to 44\",\"45 to 49\",\"50 to 54\",\"55 to 64\",\"65 or more\"],\"orientation\":\"h\",\"name\":\"Female\",\"legendgroup\":\"grouped\",\"marker\":{\"fillcolor\":\"rgba(255,127,14,1)\",\"color\":\"rgba(255,255,179,1)\",\"size\":6,\"line\":{\"color\":\"rgba(255,255,179,1)\",\"width\":1}},\"xaxis\":\"x\",\"yaxis\":\"y\",\"frame\":null}],\"highlight\":{\"on\":\"plotly_click\",\"persistent\":false,\"dynamic\":false,\"selectize\":false,\"opacityDim\":0.2,\"selected\":{\"opacity\":1}},\"base_url\":\"https://plot.ly\"},\"evals\":[\"config.modeBarButtonsToAdd.0.click\"],\"jsHooks\":{\"render\":[{\"code\":\"function(el, x) { var ctConfig = crosstalk.var('plotlyCrosstalkOpts').set({\\\"on\\\":\\\"plotly_click\\\",\\\"persistent\\\":false,\\\"dynamic\\\":false,\\\"selectize\\\":false,\\\"opacityDim\\\":0.2,\\\"selected\\\":{\\\"opacity\\\":1}}); }\",\"data\":null}]}}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"7de67ec5d18\">{\"viewer\":{\"width\":\"100%\",\"height\":400,\"padding\":15,\"fill\":true},\"browser\":{\"width\":\"100%\",\"height\":400,\"padding\":0,\"fill\":true}}</script>","htmlwidget-head":"{\"stylesheets\":[\"https://rserverhtmlwidgetasset.azureedge.net/plotly-htmlwidgets-ef6d87e1454c6f9f50a1a5a3e8b42646.css\",\"https://rserverhtmlwidgetasset.azureedge.net/crosstalk-b25ccf47e9892cf2654d5ded8a45d9b7.css\"],\"javascript\":[\"https://rserverhtmlwidgetasset.azureedge.net/htmlwidgets-d2ab507a7e7d3e3d7c2178bda9d4c762.js\",\"https://rserverhtmlwidgetasset.azureedge.net/plotly-latest.min-1cf882c1f4d96a3ae7ac4a9a4483cdb3.js\",\"https://rserverhtmlwidgetasset.azureedge.net/plotly-0ee55de650f6373808867c623e4933c5.js\",\"https://rserverhtmlwidgetasset.azureedge.net/jquery.min-91a24ea414e8c447d647cecab86866c2.js\",\"https://rserverhtmlwidgetasset.azureedge.net/crosstalk.min-b1936a0f8f135773de79f3a54af76d20.js\",\"https://rserverhtmlwidgetasset.azureedge.net/typedarray.min-830ee97537deb99885d830da3312e14d.js\"],\"attachments\":[]}","message":"","warning":"","visible":"yes"},"secondsTaken":2.7776354000000003,"updated":"2017-05-18T03:17:16.6073622Z","lastUpdatedMessage":null,"executedCode":"library(flipStandardCharts)\ndat <- if (!exists(\"formDataType\") || formDataType == \"Use an existing table\") {\n formTable\n} else\n flipTransformations::ParseEnteredData(formEnteredData)\n \nchart.7 <- Chart(y = if (exists(\"formMultiplyBy100\") && formMultiplyBy100) 100 * dat else dat,\n type = formType,\n transpose = formTranspose,\n title = formTitle,\n title.font.family = NULL,\n title.font.color = NULL,\n title.font.size = 16,\n colors = formPalette,\n colors.reverse = FALSE,\n opacity = NULL,\n background.fill.color = rgb(255, 255, 255, maxColorValue = 255),\n background.fill.opacity = 1,\n charting.area.fill.color = rgb(255, 255, 255, maxColorValue = 255),\n charting.area.fill.opacity = 1,\n legend.show = TRUE,\n legend.fill = rgb(255, 255, 255, maxColorValue = 255),\n legend.border.color = rgb(44, 44, 44, maxColorValue = 255),\n legend.border.line.width = 0,\n legend.font.color = NULL,\n legend.font.family = NULL,\n legend.font.size = 10,\n legend.position = \"right\",\n legend.ascending = TRUE,\n margin.top = NULL,\n margin.bottom = NULL,\n margin.left = NULL,\n margin.right = NULL,\n margin.inner.pad = NULL,\n y.title = formYTitle,\n y.title.font.color = NULL,\n y.title.font.family = NULL,\n y.title.font.size = 12,\n y.line.width = 0,\n y.line.color = rgb(0, 0, 0, maxColorValue = 255),\n y.tick.marks = \"\",\n y.tick.mark.length = 5,\n y.bounds.minimum = NULL,\n y.bounds.maximum = NULL,\n y.tick.distance = NULL,\n y.zero.line.width = 0,\n y.zero.line.color = rgb(44, 44, 44, maxColorValue = 255),\n y.position = \"left\",\n y.data.reversed = FALSE,\n y.grid.width = 1 * formShowGrid && !formType %in% c(\"Pie\", \"Donut\", \"Bar\", \"Stacked Bar\", \"100% Stacked Bar\"),\n y.grid.color = rgb(225, 225, 225, maxColorValue = 255),\n y.tick.show = TRUE,\n y.tick.suffix = formSuffix,\n y.tick.prefix = formPrefix,\n y.tick.decimals = NULL,\n y.tick.format.manual = \"\",\n y.hovertext.decimals = NULL,\n y.hovertext.format.manual = \"\",\n y.tick.angle = NULL,\n y.tick.font.color = NULL,\n y.tick.font.family = NULL,\n y.tick.font.size = 10,\n x.title = formXTitle,\n x.title.font.color = NULL,\n x.title.font.family = NULL,\n x.title.font.size = 12,\n x.line.width = 0,\n x.line.color = rgb(0, 0, 0, maxColorValue = 255),\n x.tick.marks = \"\",\n x.tick.mark.length = 5,\n x.bounds.minimum = NULL,\n x.bounds.maximum = NULL,\n x.tick.distance = NULL,\n x.zero.line.width = 0,\n x.zero.line.color = rgb(44, 44, 44, maxColorValue = 255),\n x.position = \"bottom\",\n x.data.reversed = FALSE,\n x.grid.width = 1 * formShowGrid && !formType %in% c(\"Pie\", \"Donut\", \"Area\", \"Stacked Area\", \"100% Stacked Area\", \"Column\", \"Stacked Column\", \"100% Stacked Column\", \"Line\"),\n x.grid.color = rgb(225, 225, 225, maxColorValue = 255),\n x.tick.show = TRUE,\n x.tick.suffix = formSuffix,\n x.tick.prefix = formPrefix,\n x.tick.decimals = NULL,\n x.tick.format.manual = \"\",\n x.hovertext.decimals = NULL,\n x.hovertext.format.manual = \"\",\n x.tick.angle = NULL,\n x.tick.font.color = NULL,\n x.tick.font.family = NULL,\n x.tick.font.size = 10,\n x.tick.label.autoformat = TRUE,\n series.marker.show = if (formType %in% c(\"Labeled Scatterplot\", \"Labeled Bubbleplot\")) \"automatic\" else \"none\",\n series.marker.colors = NULL,\n series.marker.colors.reverse = FALSE,\n series.marker.opacity = 1,\n series.marker.size = 6,\n series.marker.border.width = 1,\n series.marker.border.colors = NULL,\n series.marker.border.colors.reverse = FALSE,\n series.marker.border.opacity = 1,\n series.line.width = 3,\n series.line.colors = NULL,\n series.line.colors.reverse = FALSE,\n series.line.opacity = 1,\n tooltip.show = TRUE,\n modebar.show = FALSE,\n global.font.family = \"Arial\",\n global.font.color = rgb(44, 44, 44, maxColorValue=255),\n rows.to.ignore = formIgnoreRows,\n cols.to.ignore = formIgnoreColumns,\n bar.gap = 0.15,\n data.label.show = formShowDataLabels,\n data.label.font.family = NULL,\n data.label.font.size = 10,\n data.label.font.color = NULL,\n data.label.decimals = formDataLabelDecimals,\n data.label.prefix = formPrefix,\n data.label.suffix = formSuffix,\n data.label.threshold = NULL,\n data.label.position = \"top middle\",\n pie.order = \"initial\",\n pie.groups.order = \"initial\",\n pie.subslice.colors = formPaletteOuter,\n pie.subslice.colors.reverse = FALSE,\n pie.subslice.colors.repeat = TRUE,\n pie.border.color = rgb(255, 255, 255, maxColorValue = 255),\n pie.inner.radius = formRadius,\n pie.show.percentages = formType %in% c(\"Pie\", \"Donut\") && formPiePercentages,\n z.title = formZTitle,\n scatter.group.indices = formGroupIndices,\n scatter.group.labels = formGroupLabels,\n us.date.format = if (exists(\"formDateFormat\") && formDateFormat != \"Default\") formDateFormat == \"US (mm/dd/yyyy)\" else NULL) \nchart.7","lastSavedCode":"library(flipStandardCharts)\ndat <- if (!exists(\"formDataType\") || formDataType == \"Use an existing table\") {\n formTable\n} else\n flipTransformations::ParseEnteredData(formEnteredData)\n \nchart.7 <- Chart(y = if (exists(\"formMultiplyBy100\") && formMultiplyBy100) 100 * dat else dat,\n type = formType,\n transpose = formTranspose,\n title = formTitle,\n title.font.family = NULL,\n title.font.color = NULL,\n title.font.size = 16,\n colors = formPalette,\n colors.reverse = FALSE,\n opacity = NULL,\n background.fill.color = rgb(255, 255, 255, maxColorValue = 255),\n background.fill.opacity = 1,\n charting.area.fill.color = rgb(255, 255, 255, maxColorValue = 255),\n charting.area.fill.opacity = 1,\n legend.show = TRUE,\n legend.fill = rgb(255, 255, 255, maxColorValue = 255),\n legend.border.color = rgb(44, 44, 44, maxColorValue = 255),\n legend.border.line.width = 0,\n legend.font.color = NULL,\n legend.font.family = NULL,\n legend.font.size = 10,\n legend.position = \"right\",\n legend.ascending = TRUE,\n margin.top = NULL,\n margin.bottom = NULL,\n margin.left = NULL,\n margin.right = NULL,\n margin.inner.pad = NULL,\n y.title = formYTitle,\n y.title.font.color = NULL,\n y.title.font.family = NULL,\n y.title.font.size = 12,\n y.line.width = 0,\n y.line.color = rgb(0, 0, 0, maxColorValue = 255),\n y.tick.marks = \"\",\n y.tick.mark.length = 5,\n y.bounds.minimum = NULL,\n y.bounds.maximum = NULL,\n y.tick.distance = NULL,\n y.zero.line.width = 0,\n y.zero.line.color = rgb(44, 44, 44, maxColorValue = 255),\n y.position = \"left\",\n y.data.reversed = FALSE,\n y.grid.width = 1 * formShowGrid && !formType %in% c(\"Pie\", \"Donut\", \"Bar\", \"Stacked Bar\", \"100% Stacked Bar\"),\n y.grid.color = rgb(225, 225, 225, maxColorValue = 255),\n y.tick.show = TRUE,\n y.tick.suffix = formSuffix,\n y.tick.prefix = formPrefix,\n y.tick.decimals = NULL,\n y.tick.format.manual = \"\",\n y.hovertext.decimals = NULL,\n y.hovertext.format.manual = \"\",\n y.tick.angle = NULL,\n y.tick.font.color = NULL,\n y.tick.font.family = NULL,\n y.tick.font.size = 10,\n x.title = formXTitle,\n x.title.font.color = NULL,\n x.title.font.family = NULL,\n x.title.font.size = 12,\n x.line.width = 0,\n x.line.color = rgb(0, 0, 0, maxColorValue = 255),\n x.tick.marks = \"\",\n x.tick.mark.length = 5,\n x.bounds.minimum = NULL,\n x.bounds.maximum = NULL,\n x.tick.distance = NULL,\n x.zero.line.width = 0,\n x.zero.line.color = rgb(44, 44, 44, maxColorValue = 255),\n x.position = \"bottom\",\n x.data.reversed = FALSE,\n x.grid.width = 1 * formShowGrid && !formType %in% c(\"Pie\", \"Donut\", \"Area\", \"Stacked Area\", \"100% Stacked Area\", \"Column\", \"Stacked Column\", \"100% Stacked Column\", \"Line\"),\n x.grid.color = rgb(225, 225, 225, maxColorValue = 255),\n x.tick.show = TRUE,\n x.tick.suffix = formSuffix,\n x.tick.prefix = formPrefix,\n x.tick.decimals = NULL,\n x.tick.format.manual = \"\",\n x.hovertext.decimals = NULL,\n x.hovertext.format.manual = \"\",\n x.tick.angle = NULL,\n x.tick.font.color = NULL,\n x.tick.font.family = NULL,\n x.tick.font.size = 10,\n x.tick.label.autoformat = TRUE,\n series.marker.show = if (formType %in% c(\"Labeled Scatterplot\", \"Labeled Bubbleplot\")) \"automatic\" else \"none\",\n series.marker.colors = NULL,\n series.marker.colors.reverse = FALSE,\n series.marker.opacity = 1,\n series.marker.size = 6,\n series.marker.border.width = 1,\n series.marker.border.colors = NULL,\n series.marker.border.colors.reverse = FALSE,\n series.marker.border.opacity = 1,\n series.line.width = 3,\n series.line.colors = NULL,\n series.line.colors.reverse = FALSE,\n series.line.opacity = 1,\n tooltip.show = TRUE,\n modebar.show = FALSE,\n global.font.family = \"Arial\",\n global.font.color = rgb(44, 44, 44, maxColorValue=255),\n rows.to.ignore = formIgnoreRows,\n cols.to.ignore = formIgnoreColumns,\n bar.gap = 0.15,\n data.label.show = formShowDataLabels,\n data.label.font.family = NULL,\n data.label.font.size = 10,\n data.label.font.color = NULL,\n data.label.decimals = formDataLabelDecimals,\n data.label.prefix = formPrefix,\n data.label.suffix = formSuffix,\n data.label.threshold = NULL,\n data.label.position = \"top middle\",\n pie.order = \"initial\",\n pie.groups.order = \"initial\",\n pie.subslice.colors = formPaletteOuter,\n pie.subslice.colors.reverse = FALSE,\n pie.subslice.colors.repeat = TRUE,\n pie.border.color = rgb(255, 255, 255, maxColorValue = 255),\n pie.inner.radius = formRadius,\n pie.show.percentages = formType %in% c(\"Pie\", \"Donut\") && formPiePercentages,\n z.title = formZTitle,\n scatter.group.indices = formGroupIndices,\n scatter.group.labels = formGroupLabels,\n us.date.format = if (exists(\"formDateFormat\") && formDateFormat != \"Default\") formDateFormat == \"US (mm/dd/yyyy)\" else NULL) \nchart.7","highlightedCodeSpans":[{"start":66,"length":12,"index":4},{"start":113,"length":9,"index":4},{"start":296,"length":8,"index":4},{"start":321,"length":13,"index":4},{"start":347,"length":9,"index":4},{"start":452,"length":11,"index":4},{"start":1172,"length":10,"index":4},{"start":1639,"length":12,"index":4},{"start":1656,"length":8,"index":4},{"start":2121,"length":10,"index":4},{"start":2590,"length":12,"index":4},{"start":2607,"length":8,"index":4},{"start":3184,"length":8,"index":4},{"start":3844,"length":14,"index":4},{"start":3880,"length":17,"index":4},{"start":3939,"length":18,"index":4},{"start":4548,"length":8,"index":4},{"start":4768,"length":14,"index":4},{"start":4797,"length":14,"index":4}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":true,"guiControls":{"Code":"if (!form.dataEntry)\n form.dropBox({name: \"formTable\", label: \"Table\", types: [\"Table\", \"RItem:integer,numeric,matrix,array,data.frame,table\"], required: true});\nelse\n{\n var dt = form.comboBox({name: \"formDataType\", label: \"Data source\", alternatives: [\"Use an existing table\", \"Type or paste data\"], default_value: \"Use an existing table\"});\n if (dt.getValue() == \"Use an existing table\")\n form.dropBox({name: \"formTable\", label: \"Table\", types: [\"Table\", \"RItem:integer,numeric,matrix,array,data.frame,table\"], required: true});\n else\n form.dataEntry({name: \"formEnteredData\", prompt: \"Opens a spreadsheet into which you can paste data.\"})\n}\nvar t = form.comboBox({name: \"formType\", label: \"Chart type\", alternatives: [\"Area\", \"Stacked Area\", \"100% Stacked Area\", \"Bar\", \"Stacked Bar\", \"100% Stacked Bar\",\n \"Column\", \"Stacked Column\", \"100% Stacked Column\", \"Line\", \"Donut\", \"Pie\", \"Labeled Scatterplot\", \"Labeled Bubbleplot\"], default_value: \"Bar\", required: true}).getValue();\nif (t == \"Labeled Scatterplot\" || t == \"Labeled Bubbleplot\")\n form.setHeading(t);\nelse\n form.setHeading(t + \" Chart\");\nvar show_pie_percentages = false;\nif (t == \"Pie\" || t == \"Donut\")\n show_pie_percentages = form.checkBox({name: \"formPiePercentages\", label: \"Show as percentages\"}).getValue();\nif (t != \"Donut\")\n form.checkBox({name: \"formTranspose\", label: \"Switch rows and columns\"});\nif (t == \"Labeled Scatterplot\" || t == \"Labeled Bubbleplot\")\n{\n form.textBox({name: \"formGroupIndices\", label: \"Group indices\", required: false, prompt: \"For example: 1,1,2,1,3,2\"});\n form.textBox({name: \"formGroupLabels\", label: \"Group labels\", required: false, prompt: \"For example: Group 1, Group 2, Group 3\"});\n}\nform.comboBox({name: \"formPalette\", label: \"Color palette\", alternatives: [\"Default colors\", \"Primary colors\", \"Rainbow\", \"Light pastels\", \"Strong colors\",\n \"Reds, dark to light\", \"Reds, light to dark\", \"Greens, dark to light\", \"Greens, light to dark\", \"Blues, dark to light\", \"Blues, light to dark\", \"Greys, dark to light\", \"Greys, light to dark\",\n \"Heat colors (red, yellow, white)\", \"Terrain colors (green, beige, grey)\"], default_value: \"Default colors\", required: true});\nif (t == \"Pie\")\n form.comboBox({name: \"formPaletteOuter\", label: \"Outer ring color palette\", alternatives: [\"Group colors\", \"Default colors\", \"Primary colors\", \"Rainbow\", \"Light pastels\", \"Strong colors\",\n \"Reds, dark to light\", \"Reds, light to dark\", \"Greens, dark to light\", \"Greens, light to dark\", \"Blues, dark to light\", \"Blues, light to dark\", \"Greys, dark to light\", \n \"Greys, light to dark\", \"Heat colors (red, yellow, white)\", \"Terrain colors (green, beige, grey)\"], default_value: \"Group colors\", required: true});\nform.textBox({name: \"formTitle\", label: \"Title\", required: false});\nif (t != \"Pie\" && t != \"Donut\")\n{\n form.textBox({name: \"formXTitle\", label: \"X-axis title\", required: false});\n form.textBox({name: \"formYTitle\", label: \"Y-axis title\", required: false});\n}\nif (t == \"Labeled Bubbleplot\")\n form.textBox({name: \"formZTitle\", label: \"Bubble title\", required: false});\nif (t != \"100% Stacked Area\" && t != \"100% Stacked Bar\" && t != \"100% Stacked Column\" && !show_pie_percentages)\n{\n form.textBox({name: \"formPrefix\", label: \"Data value prefix\", required: false});\n var suffix = form.textBox({name: \"formSuffix\", label: \"Data value suffix\", required: false});\n if (suffix.getValue() == \"%\")\n form.checkBox({name: \"formMultiplyBy100\", label: \"Multiply data by 100\", default_value: false});\n}\nvar show_decimals_control = t == \"Pie\" || t == \"Donut\" || (t != \"Labeled Scatterplot\" && t != \"Labeled Bubbleplot\" &&\n form.checkBox({name: \"formShowDataLabels\", label: \"Show data labels\", default_value: false}).getValue());\nif (show_decimals_control)\n form.numericUpDown({name: \"formDataLabelDecimals\", label: \"Data label decimal places\", default_value: 2, increment: 1, minimum: 0, maximum: 12});\nif (t != \"Pie\" && t != \"Donut\")\n form.checkBox({name: \"formShowGrid\", label: \"Show grid\", default_value: true});\nform.textBox({label: \"Rows to ignore\", type: \"text\", default_value: \"NET, Total, SUM\", name: \"formIgnoreRows\", required: false});\nform.textBox({label: \"Columns to ignore\", type: \"text\", default_value: \"NET, Total, SUM\", name: \"formIgnoreColumns\", required: false});\nif (t == \"Donut\")\n form.numericUpDown({name: \"formRadius\", label: \"Donut hole radius %\", default_value: 60, increment: 1, minimum: 1, maximum: 100});\nelse if (t == \"Pie\")\n form.numericUpDown({name: \"formRadius\", label: \"Radius of pie groupings % (multi-column tables only)\", default_value: 60, increment: 1, minimum: 1, maximum: 100});\nif (t != \"Labeled Scatterplot\" && t != \"Labeled Bubbleplot\" && t != \"Pie\" && t != \"Donut\")\n form.comboBox({name: \"formDateFormat\", label: \"Date format\", alternatives: [\"Default\", \"US (mm/dd/yyyy)\", \"International (dd/mm/yyyy)\"], default_value: \"Default\", required: true});","JSError":null,"JSErrorDetails":null,"ControlDefinitionErrors":null,"InputValidationErrors":null,"Controls":[{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":null,"Type":"Heading","Label":null,"Value":null,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":"100% Stacked Bar Chart","Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formDataType","Type":"ComboBox","Label":"Data source","Value":"Use an existing table","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Use an existing table","Type or paste data"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formTable","Type":"DropBox","Label":"Table","Value":"36981c6a-122e-4cc6-b9d7-51bc538e0413","Allowed":["36981c6a-122e-4cc6-b9d7-51bc538e0413","d98d5b2b-15ec-43b4-abd3-db8b731ba221","678b0554-1558-422b-a3b4-25f70aceddbc","35ea192a-9f9f-42aa-aeb8-feb19742bf3e","1cc64467-2e59-4b73-b434-4ec62605be31","67a83d74-171b-4024-a8a5-d8b2515a52ea","111e2655-512c-4508-8571-7da727f9c9a3","7f7fb4d2-0004-480f-9345-35ef213ca5f8","16cdea42-36a2-405c-8da4-f7183085988e","8ce57bf4-70a5-4bf0-9239-63e48687d5c8","a7466528-fc67-49e8-b1bb-ee712eee1475","35645d2a-e45c-4dd8-8925-bfa8fefb6cf5","a51b4c64-bbf6-47c5-8479-9106a8915167"],"EmptyListMessage":null,"Multi":false,"Prompt":"Select an input which is of type Table or Ritem (Integer, Numeric, Matrix, Array, Data.Frame or Table).","ErrorMessage":"Table: Table accepts only one input which is of type Table or Ritem (Integer, Numeric, Matrix, Array, Data.Frame or Table).","Invalid":null,"Required":true,"AllowedTypes":["Table","RItem:integer,numeric,matrix,array,data.frame,table"],"MinInputs":1,"MaxInputs":1,"Height":1,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formType","Type":"ComboBox","Label":"Chart type","Value":"100% Stacked Bar","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Area","Stacked Area","100% Stacked Area","Bar","Stacked Bar","100% Stacked Bar","Column","Stacked Column","100% Stacked Column","Line","Donut","Pie","Labeled Scatterplot","Labeled Bubbleplot"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formTranspose","Type":"CheckBox","Label":"Switch rows and columns","Value":false,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":"left","Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formPalette","Type":"ComboBox","Label":"Color palette","Value":"Light pastels","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Default colors","Primary colors","Rainbow","Light pastels","Strong colors","Reds, dark to light","Reds, light to dark","Greens, dark to light","Greens, light to dark","Blues, dark to light","Blues, light to dark","Greys, dark to light","Greys, light to dark","Heat colors (red, yellow, white)","Terrain colors (green, beige, grey)"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formTitle","Type":"TextBox","Label":"Title","Value":"","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formXTitle","Type":"TextBox","Label":"X-axis title","Value":"","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formYTitle","Type":"TextBox","Label":"Y-axis title","Value":"","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formShowDataLabels","Type":"CheckBox","Label":"Show data labels","Value":false,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":"left","Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formShowGrid","Type":"CheckBox","Label":"Show grid","Value":true,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":"left","Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formIgnoreRows","Type":"TextBox","Label":"Rows to ignore","Value":"NET, Total, SUM, Less than 18","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formIgnoreColumns","Type":"TextBox","Label":"Columns to ignore","Value":"NET, Total, SUM","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formDateFormat","Type":"ComboBox","Label":"Date format","Value":"Default","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Default","US (mm/dd/yyyy)","International (dd/mm/yyyy)"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":null,"Type":null,"Label":null,"Value":null,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":true}]},"calculating":"Idle","showDebug":false,"layout":"OutputOnly","size":{"Width":697,"Height":290},"vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Manual","warnSlow":false,"outputSize":{"Width":697,"Height":290},"Options":{"debugconsole":false,"codeposition":"OutputOnly","size":{"width":697,"height":290},"splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Manual","warn slow":false}}