{"id":30,"date":"2022-01-21T14:42:19","date_gmt":"2022-01-21T14:42:19","guid":{"rendered":"https:\/\/live-ru-n-dialogue.pantheonsite.io\/?page_id=30"},"modified":"2022-03-16T15:10:47","modified_gmt":"2022-03-16T15:10:47","slug":"data","status":"publish","type":"page","link":"https:\/\/rundialogue.rutgers.edu\/?page_id=30","title":{"rendered":"Data"},"content":{"rendered":"\n<p>When users contribute to the platform, they are asked to share some information about themselves. Although the information you share will be private and confidential, we will share the age and gender of our contributors to present a visualization of who is contributing to the platform and the dialogue. If you are not comfortable sharing this information, you can decline to answer these questions, and your contributions will not be included in the visualization of these data. \u00a0<\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\"><div class=\"chart-outer\">\n    <h2>Posts by theme<\/h2><br \/>\n  \n  <canvas id=\"treemap\" width=\"400\" height=\"300\"><\/canvas>\n<\/div>\n\n\n<script>\n\nvar ctx = document.getElementById('treemap').getContext('2d');\n\nvar data = [{\"cat\":\"Power\",\"Chosen Theme\":71},{\"cat\":\"Politics\",\"Chosen Theme\":69},{\"cat\":\"Education\",\"Chosen Theme\":60},{\"cat\":\"Race & Ethnicity\",\"Chosen Theme\":57},{\"cat\":\"Poverty & Inequality\",\"Chosen Theme\":43},{\"cat\":\"Gender & Sexuality\",\"Chosen Theme\":26},{\"cat\":\"Immigration\",\"Chosen Theme\":20},{\"cat\":\"Religion\",\"Chosen Theme\":14}];\n\nvar myChart = new Chart(ctx, {\n    type: 'treemap',\n    data: {\n    datasets: [{\n        tree: data,\n        key: 'Chosen Theme',\n        groups: ['cat'],\n        spacing: 1,\n        backgroundColor: '#cc0033',\n        hoverBackgroundColor: '#8c0023',\n    }]\n    },\n    options: {\n      plugins: {\n        legend: {\n          display: false\n      }\n    }\n  }\n});\n<\/script><\/div>\n\n\n\n<div class=\"wp-block-column\"><div class=\"chart-outer\">\n    <h2>Posts by Type<\/h2><br \/>\n  \n  <div class=\"pie-outer\" style=\"padding: 0 45px\">\n      <canvas id=\"piechart\" width=\"300\" height=\"300\"><\/canvas>\n  <\/div>\n<\/div>\n\n\n\n<script>\n\nvar ctx = document.getElementById('piechart').getContext('2d');\n\nvar data = [65,66,6];\nvar labels = [\"Image\",\"Text\",\"Video\"];\n\nvar myChart = new Chart(ctx, {\n    type: 'doughnut',\n    data: {\n    datasets: [{\n        data: data,\n        backgroundColor: '#cc0033',\n        hoverBackgroundColor: '#8c0023',\n    }],\n    labels: labels,\n    },\n    options: {\n    plugins: {\n      legend: {\n        display: false\n      }\n    }\n  }\n});\n<\/script><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\"><div class=\"chart-outer\">\n\n    <h2>Posts by Age<\/h2><br \/>\n  \n<canvas id=\"agechart\" width=\"400\" height=\"300\"><\/canvas>\n\n<\/div>\n\n<script>\n\nvar ctx = document.getElementById('agechart').getContext('2d');\n\nvar agedata = [85,19,8,18,8];\nvar agelabels = [\"18-28\",\"29-39\",\"40-50\",\"51-61\",\"I prefer not to answer.\"];\n\nvar ageChart = new Chart(ctx, {\n    type: 'bar',\n    data: {\n        labels: agelabels,\n        datasets: [{\n            data: agedata,\n            backgroundColor: '#cc0033',\n            hoverBackgroundColor: '#8c0023',\n            barThickness: 'flex',\n            barPercentage: 1.22,\n        }],\n    },\n    options: {\n    plugins: {\n      legend: {\n        display: false\n      }\n    },\n    scales: {\n      x: {\n        display: false,\n      },\n      y: {\n        display: false,\n      },\n    }\n  }\n});\n<\/script><\/div>\n\n\n\n<div class=\"wp-block-column\"><div class=\"chart-outer\">\n    <h2>Posts by Gender<\/h2><br \/>\n  \n  <canvas id=\"genderchart\" width=\"400\" height=\"300\"><\/canvas>\n<\/div>\n\n\n\n<script>\n\nvar ctx = document.getElementById('genderchart').getContext('2d');\n\nvar data = [{\"cat\":\"Female\",\"Contributor Gender\":61},{\"cat\":\"Male\",\"Contributor Gender\":37},{\"cat\":\"I prefer not to answer.\",\"Contributor Gender\":22},{\"cat\":\"Cisgender\",\"Contributor Gender\":4},{\"cat\":\"Gender Fluid\",\"Contributor Gender\":4},{\"cat\":\"Gender Neutral\",\"Contributor Gender\":3},{\"cat\":\"Gender Nonconforming\",\"Contributor Gender\":3},{\"cat\":\"Gender Queer\",\"Contributor Gender\":3}];\n\nvar genderChart = new Chart(ctx, {\n    type: 'treemap',\n    data: {\n    datasets: [{\n        tree: data,\n        key: 'Contributor Gender',\n        groups: ['cat'],\n        spacing: 1,\n        backgroundColor: '#cc0033',\n        hoverBackgroundColor: '#8c0023',\n    }]\n    },\n    options: {\n      plugins: {\n        legend: {\n          display: false\n      }\n    }\n  }\n});\n\n\/\/ var genderChart = new Chart(ctx, {\n\/\/     type: 'bar',\n\/\/     data: {\n\/\/         labels: genderlabels,\n\/\/         datasets: [{\n\/\/             data: genderdata,\n\/\/             backgroundColor: '#cc0033',\n\/\/             hoverBackgroundColor: '#8c0023',\n\/\/         }],\n\/\/     },\n\/\/     options: {\n\/\/     plugins: {\n\/\/       legend: {\n\/\/         display: false\n\/\/       }\n\/\/     }\n\/\/   }\n\/\/ });\n<\/script><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When users contribute to the platform, they are asked to share some information about themselves. Although the information you share will be private and confidential, we will share the age and gender of our contributors to present a visualization of who is contributing to the platform and the dialogue. If you are not comfortable sharing [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/rundialogue.rutgers.edu\/index.php?rest_route=\/wp\/v2\/pages\/30"}],"collection":[{"href":"https:\/\/rundialogue.rutgers.edu\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rundialogue.rutgers.edu\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rundialogue.rutgers.edu\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rundialogue.rutgers.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=30"}],"version-history":[{"count":18,"href":"https:\/\/rundialogue.rutgers.edu\/index.php?rest_route=\/wp\/v2\/pages\/30\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/rundialogue.rutgers.edu\/index.php?rest_route=\/wp\/v2\/pages\/30\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/rundialogue.rutgers.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}