polarChart = ({
margin = { left: 20, right: 20, top: 20, bottom: 20 },
data,
columns,
scale,
order,
rowHeight = 30,
xRange = [margin.left, width - margin.right],
yRange = [rowHeight * data.length - margin.bottom, margin.top],
xDomain = columns
}) => {
const height = rowHeight * data.length;
const scaleX = d3.scalePoint(columns, [margin.left, width - margin.right]);
const scaleY = d3.scalePoint(columns, [margin.left, width - margin.right]);
const svg = d3.create("svg").attr("viewBox", [0, 0, width, 300]);
return svg.node();
}