diff --git a/resources/views/insights/index.blade.php b/resources/views/insights/index.blade.php index eb5411c..102a31b 100644 --- a/resources/views/insights/index.blade.php +++ b/resources/views/insights/index.blade.php @@ -101,7 +101,6 @@ ctx.drawImage(img, imgX, imgY); } } - Livewire.emit('chartAnimationComplete'); } }; diff --git a/resources/views/livewire/accepted-and-follow-up-apps-percentage-chart.blade.php b/resources/views/livewire/accepted-and-follow-up-apps-percentage-chart.blade.php index a74ec15..2c308a5 100644 --- a/resources/views/livewire/accepted-and-follow-up-apps-percentage-chart.blade.php +++ b/resources/views/livewire/accepted-and-follow-up-apps-percentage-chart.blade.php @@ -37,8 +37,13 @@ color: ['white', 'gray'], }, } - } + }, }, + animation: { + onComplete: function() { + Livewire.emit('chartAnimationComplete'); + } + }, }; // Create the new chart instance diff --git a/resources/views/livewire/student-apps-viewed-not-viewed-chart.blade.php b/resources/views/livewire/student-apps-viewed-not-viewed-chart.blade.php index 82c78e8..c9913d0 100644 --- a/resources/views/livewire/student-apps-viewed-not-viewed-chart.blade.php +++ b/resources/views/livewire/student-apps-viewed-not-viewed-chart.blade.php @@ -38,6 +38,11 @@ color: ['white', 'gray'], }, } + }, + }, + animation: { + onComplete: function() { + Livewire.emit('chartAnimationComplete'); } }, }; diff --git a/resources/views/livewire/students-app-count-chart.blade.php b/resources/views/livewire/students-app-count-chart.blade.php index 0768cb3..0cdbae7 100644 --- a/resources/views/livewire/students-app-count-chart.blade.php +++ b/resources/views/livewire/students-app-count-chart.blade.php @@ -36,6 +36,11 @@ stacked: false, }, }, + animation: { + onComplete: function() { + Livewire.emit('chartAnimationComplete'); + } + }, }, plugins: [highlightTickPlugin, validateEmptyDataPlugin], } diff --git a/resources/views/livewire/students-app-filing-status-chart.blade.php b/resources/views/livewire/students-app-filing-status-chart.blade.php index 67d4d1d..7454acc 100644 --- a/resources/views/livewire/students-app-filing-status-chart.blade.php +++ b/resources/views/livewire/students-app-filing-status-chart.blade.php @@ -36,7 +36,12 @@ y: { stacked: false, }, - } + }, + animation: { + onComplete: function() { + Livewire.emit('chartAnimationComplete'); + } + }, }, plugins: [highlightTickPlugin, validateEmptyDataPlugin], }