export default class ChannelHistogramController {
    constructor() {
        'ngInject';
    }

    $onInit() {
        this.histOptions = {
            chart: {
                type: 'lineChart',
                showLegend: false,
                showXAxis: false,
                showYAxis: false,
                margin: {
                    top: 0,
                    right: 0,
                    bottom: 0,
                    left: 0
                },
                xAxis: {
                    showLabel: false
                },
                yAxis: {
                    showLabel: false
                }
            }
        };

        if (this.data) {
            this.histData = Array.from(this.data);
        }
    }

    $onChanges(changesObj) {
        if ('data' in changesObj && changesObj.data.currentValue) {
            this.histData = Array.from(changesObj.data.currentValue);
        }
    }
}

export default class ChannelHistogramController {
    constructor() {
        'ngInject';
    }

    $onInit() {
        this.histOptions = {
            chart: {
                type: 'lineChart',
                showLegend: false,
                showXAxis: false,
                showYAxis: false,
                interactive: false,
                margin: {
                    top: 0,
                    right: 0,
                    bottom: 0,
                    left: 0
                },
                xAxis: {
                    showLabel: false
                },
                yAxis: {
                    showLabel: false
                }
            }
        };

        if (this.data) {
            this.histData = Array.from(this.data);
        }
    }

    $onChanges(changesObj) {
        if ('data' in changesObj && changesObj.data.currentValue) {
            this.histData = Array.from(changesObj.data.currentValue);
        }
    }
}

Remove interactivity from cc histogram
Remove interactivity from cc histogram
