Setting width and height

后端 未结 10 2048
广开言路
广开言路 2020-12-07 19:50

I\'m trying out the example code for Chart.js given in the docs.

Width and height is specified inline on the canvas element at 400px/400px.

But when renderin

10条回答
  •  自闭症患者
    2020-12-07 20:37

    I cannot believe nobody talked about using a relative parent element.

    Code:

    Sources: Official documentation

提交回复
热议问题