score:22

Accepted answer

you just need to change the canvas size.

when you are creating the chart you can specify it right in the element:

<canvas id="top10itemschart" width="1000" height="1000"></canvas>

or if you prefer to do it in javascript

var ctx = $("#top10itemschart").get(0).getcontext("2d");
ctx.width = 1000;
ctx.height = 1000;

if the resizing doesn't work as you wish, you can also try setting the maintainaspectratio option to false:

var optionspie = {
    /** ... */
    responsive: true,
    maintainaspectratio: false,
    /** ... */
};

hope it helps.


Related Query

More Query from same tag