Responsive chart view on mobile

is it possible on the responsive mobile view chart? thanks

https://www.chartjs.org/docs/latest/general/responsive.html

on chart js.
css
.chart-container {
position: relative;
margin: auto;
height: 80vh;
width: 80vw;
}
where shoulid i put css code?
thanks

Put it in “User” tab under “HTML” → “Styles” tab.

what the resulting css chart is generated?
thanks

That code will be generated and appended in the latest content of “css/{project_name}.css” file.

ok im add code .
ew-chart-container{position:relative;margin:auto;height:80vh;width:80vw}.
not work…
how update js.
var options = {
maintainAspectRatio: false,…where should i replace it? thaks

You may put it in “Client Scripts” → “Global” → “Pages with header/footer” → “Client Script”, then re-generate at least “header.php” file, and try again.

is there an example script to add js by bringing the chart that we have set in php maker?
thx

Google is your friend. You should be able to implement it into your PHPMaker project.