chart1 = {
var chartinfo = {
showMargins: false,
height: 562,
title: "Support or Oppose Right to Privacy at State Level",
sub: "Which of the following best represents your level of support or opposition to this type of constitutional protection in your state?",
footer: 'Survey of 1182 U.S. adults (Dec 2018)',
info: {
type: "pie",
order: "pos-neutral-neg",
legend: "default"
},
data: data1,
sub_y: 0,
main_y: 0
}
const svg = d3.select(DOM.svg(globals.width, chartinfo.height))
.style("background-color", globals.color.offwhite);
chartGen(svg, chartinfo);
return svg.node();
}