Accepted answer

to make the pie chart smaller, set responsive property to false in your chart options, like so ...

var options = {
  responsive: false,


in var ctxptd = $("#mychart2").get(0).getcontext("2d");, you could use a html dom element, not a jquery element, and set height only like:

var ctxptd = document.getelementbyid("mychart2");
ctxptd.height = 200;

hope it works.

Related Query

More Query from same tag