packages/non-core/bundle-visualizer/sunburst.js
Function constructor
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor({
container,
colors = DEFAULT_COLORS,
} = {}) {
this.elements = {};
Function draw
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw(json, i) {
const svg = this.elements.chart
.append("svg:svg")
.attr("width", width)
.attr("height", height)