Remove initial animation from charts
This commit is contained in:
parent
67b9847587
commit
aa3e4ffded
@ -50,8 +50,8 @@ jQuery(document).ready(function($)
|
|||||||
gatherYear(tens, 2010, 2020);
|
gatherYear(tens, 2010, 2020);
|
||||||
}
|
}
|
||||||
|
|
||||||
var canvasDimension = document.getElementById("photo").getContext('2d');
|
var canvasPhoto = document.getElementById("photo").getContext('2d');
|
||||||
var chartDimension = new Chart(canvasDimension, {
|
var chartPhoto = new Chart(canvasPhoto, {
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
data: {
|
data: {
|
||||||
labels: ["1956 - 1959", "1960 - 1969", "1970 - 1979", "1980 - 1989", "1990 - 1999", "2000 - 2009", "2010 - 2016"],
|
labels: ["1956 - 1959", "1960 - 1969", "1970 - 1979", "1980 - 1989", "1990 - 1999", "2000 - 2009", "2010 - 2016"],
|
||||||
@ -111,7 +111,11 @@ jQuery(document).ready(function($)
|
|||||||
legend: {
|
legend: {
|
||||||
display: false,
|
display: false,
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
}
|
},
|
||||||
|
animation: {
|
||||||
|
duration: 0
|
||||||
|
},
|
||||||
|
responsiveAnimationDuration: 0
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -34,7 +34,11 @@ jQuery(document).ready(function($)
|
|||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
display: false
|
display: false
|
||||||
}
|
},
|
||||||
|
animation: {
|
||||||
|
duration: 0
|
||||||
|
},
|
||||||
|
responsiveAnimationDuration: 0
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -72,7 +76,11 @@ jQuery(document).ready(function($)
|
|||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
display: false
|
display: false
|
||||||
}
|
},
|
||||||
|
animation: {
|
||||||
|
duration: 0
|
||||||
|
},
|
||||||
|
responsiveAnimationDuration: 0
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -110,7 +118,11 @@ jQuery(document).ready(function($)
|
|||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
display: false
|
display: false
|
||||||
}
|
},
|
||||||
|
animation: {
|
||||||
|
duration: 0
|
||||||
|
},
|
||||||
|
responsiveAnimationDuration: 0
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user