How do you set the size for the ChartJs?

How do you set the size for the ChartJs?

The only solution I found is to resize our div object (wich contains our ChartJs) like :
div.setHeight() / div.setWidth() or div.setSizeFull()

I see… so you need to wrap it inside a div?

Yes !

It should be set to fit parent. So wrapping it inside div with specified width should work.

it is not working under Vaadin Flow 12

Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Object.a.parse (jsonfn.min.js:6)
at HTMLElement.connectedCallback (chartjs.html:83)

It works! Under vaadin 12 flow. Thank you.
Please add to instruction

<dependency>
	<groupId>be.ceau</groupId>
	<artifactId>chart</artifactId>
	<version>2.3.1</version>
</dependency>

<dependency>
	<groupId>com.syndybat</groupId>
	<artifactId>chartjs</artifactId>
	<version>1.1.9-Beta</version>
</dependency>

Thanks I will edit it.