mirror of https://github.com/bvn13/covid19-ru.git
try to fix chart blinking bug
parent
5504a0b063
commit
3e377aa63d
|
@ -93,7 +93,11 @@
|
|||
: 0
|
||||
);
|
||||
|
||||
var myChart = new Chart(ctx, {
|
||||
if (window.myChart) {
|
||||
window.myChart.destroy();
|
||||
}
|
||||
|
||||
window.myChart = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: labels,
|
||||
|
|
Loading…
Reference in New Issue