private createOrRemoveScrollbar()

in src/TornadoChartScrolling.ts [142:148]


    private createOrRemoveScrollbar(isVisible: boolean, brushGraphicsContext: Selection<any>, brushClass: string) {
        if (isVisible && this.isScrollable) {
            return brushGraphicsContext || this.root.append("g").merge(this.root).classed(brushClass, true);
        }

        return brushGraphicsContext ? void brushGraphicsContext.remove() : undefined;
    }