Set size chartjs in div

0👍

As per the comments:

Seems to work for me. I’ll add that height: 100% gets ignored as the chart will attempt to keep the aspect ratio. So you can set height to a px value to have it ignore the aspect ratio.

The styling was done via css:

#chart {
    width: 100%;
    height: 600px;
}

http://jsfiddle.net/swtakxo0/2

Leave a comment