Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createChart(donutColors = null) {
this.chart = donutChart();
let containerWidth = d3
.select(this.element)
.node()
.getBoundingClientRect().width;
this.chart
// .isAnimated(true)
//.highlightSliceById(2)
.width(containerWidth)
.height(containerWidth)
.margin({
top: 0,
right: 0,
bottom: 0,
left: 0,