New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to fix the cutting graph in ESM build? #9273
Comments
Seems like a duplication of #8309 also there is no version 3.5.1 of the lib, the latest version of chart.js is 3.3.2 |
This is likely a problem with the canvas size; if you have a fiddle that reproduces this issue I can take a look and confirm. |
@etimberg I imported Chart .js like this
Helpers is external file |
Is your datalabels plugin version compatible with chart.js v3? |
@kurkle I don't use it.
I tried use plugin, but it did'nt work. |
It doesn't work
|
It doesn't work
|
I'm not going to create a reproduce for you, but this could work: import * as helpers from 'chart.js/helpers';
helpers.clipArea = function() {};
helpers.unclipArea = function() {}; |
@kurkle |
In new version class Chart dont't have
|
I'm guessing codepen does not cut it in this case, so you might want to use codesandbox or equivalent with a build step. |
Expected Behavior
I want to display a bar chart of 158 values,
Current Behavior
But a cut occurs at 110.
Possible Solution
Steps to Reproduce
Context
I tried the same with the second version but got the same error.
When I use ChartJsPluginDataLabels, I have error: Cannot read property 'skip' of undefined
Environment
The text was updated successfully, but these errors were encountered: