Equal height in local environment(windows 10) and in docker environment(stable-alpine), for this element:
<canvas ref="chartCanvas" height="390px"></canvas>
Current behavior
The build in local environment(windows 10), height = 400px
The build in docker, height = 869px
Expected behavior
Equal height in local environment(windows 10) and in docker environment(stable-alpine), for this element:
<canvas ref="chartCanvas" height="390px"></canvas>
Current behavior
The build in local environment(windows 10), height = 400px The build in docker, height = 869px
Reproducible sample
https://codesandbox.io/p/sandbox/vue-chart-3-chart-js-issue-template-forked-q5vzkk
Optional extra steps/info to reproduce
Surprisingly, but in reproducible sample the behavior charts are similar to Docker's when opening full-screen
Run docker:
FROM nginx:stable-alpine as production-stage
Possible solution
But the height will be 365px, not 160px. But this brute force method will help you find the correct height
Context
I tried a simple canvas chart with random data and the height was the same everywhere else .
I thought chart.js without vue-chart-3 solved my problem. And that's why I gave up on vue-chart-3 But I was wrong
chart.js version
4.4.0
Browser name and version
Chrome 120.0.6099.200
Link to your project
No response