Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render: function() {
let barChart = new bar();
let barContainer = d3.select(this.el);
let containerWidth = "600";
barChart
.margin({
left: 120,
right: 20,
top: 20,
bottom: 10
})
.horizontal(true)
.usePercentage(true)
.percentageAxisToMaxRatio(1.3)
.width(containerWidth)
.height(400);
barChart.colorSchema(colors.colorSchemas.extendedOrangeColorSchema);