Skip to content

Commit

Permalink
Delay chart recreation
Browse files Browse the repository at this point in the history
  • Loading branch information
rajgoel committed Sep 2, 2021
1 parent cfeb8e9 commit 2276044
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chart/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**
** A plugin for reveal.js allowing to integrate Chart.js
**
** Version: 1.3.0
** Version: 1.3.1
**
** License: MIT license (see LICENSE.md)
**
Expand Down Expand Up @@ -112,8 +112,7 @@ const initChart = function(Reveal){

function updateChart(canvas, idx, data) {
canvas.chart.data.datasets[idx].data = data;
canvas.chart.update();
Reveal.layout();
recreateChart( canvas );
}

var initializeCharts = function(){
Expand Down

0 comments on commit 2276044

Please sign in to comment.