Setting width and height

后端 未结 10 2081
广开言路
广开言路 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:36

    Not mentioned above but using max-width or max-height on the canvas element is also a possibility.

提交回复
热议问题