Skip to content

Commit

Permalink
Changes loading animation trigger from afterDraw to onComplete hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
betsyecastro committed Sep 30, 2024
1 parent cdfab91 commit 2858f5f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
1 change: 0 additions & 1 deletion resources/views/insights/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
ctx.drawImage(img, imgX, imgY);
}
}
Livewire.emit('chartAnimationComplete');
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@
color: ['white', 'gray'],
},
}
}
},
},
animation: {
onComplete: function() {
Livewire.emit('chartAnimationComplete');
}
},
};
// Create the new chart instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
color: ['white', 'gray'],
},
}
},
},
animation: {
onComplete: function() {
Livewire.emit('chartAnimationComplete');
}
},
};
Expand Down
5 changes: 5 additions & 0 deletions resources/views/livewire/students-app-count-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
stacked: false,
},
},
animation: {
onComplete: function() {
Livewire.emit('chartAnimationComplete');
}
},
},
plugins: [highlightTickPlugin, validateEmptyDataPlugin],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
y: {
stacked: false,
},
}
},
animation: {
onComplete: function() {
Livewire.emit('chartAnimationComplete');
}
},
},
plugins: [highlightTickPlugin, validateEmptyDataPlugin],
}
Expand Down

0 comments on commit 2858f5f

Please sign in to comment.