templates/assets/js/chart.js
function () {
            window.scrollTo(0, 0);
            var chart = document.querySelector('.scenario-chart'),
                chartBtn = document.querySelectorAll('.btn-chart');
            if (chart.style.display != 'block') {
                chart.style.display = 'block';
                document.body.style.overflow = 'hidden';
            } else {
                chart.classList.add('chart-hidden');
                document.body.style.overflow = 'auto';
                app.navigation.removeActiveClass(chartBtn);
            }
            this.toggleChartBackdrop();
        }
function () {
            window.scrollTo(0, 0);
            var chart = document.querySelector('.scenario-chart'),
                chartBtn = document.querySelectorAll('.btn-chart');
            if (chart.style.display != 'block') {
                chart.style.display = 'block';
                document.body.style.overflow = 'hidden';
            } else {
                chart.classList.add('chart-hidden');
                document.body.style.overflow = 'auto';
                app.navigation.removeActiveClass(chartBtn);
            }
            this.toggleChartBackdrop();
        }
function ( ) { window . scrollTo ( 0 , 0 ) ; var chart = document . querySelector ( '.scenario-chart' ) , chartBtn = document . querySelectorAll ( '.btn-chart' ) ; if ( chart . style . display != 'block' ) { chart . style . display = 'block' ; document . body . style . overflow = 'hidden' ; } else { chart . classList . add ( 'chart-hidden' ) ; document . body . style . overflow = 'auto' ; app . navigation . removeActiveClass ( chartBtn ) ; } this . toggleChartBackdrop ( ) ; }
Displaying and hiding chart
Displaying and hiding chart