-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Turns off interpolation per default #7386
Conversation
This isn't being set in the right place. You can see by doing |
It looks like it's set here: Chart.js/src/elements/element.line.js Line 25 in cfb5fba
|
I think there are some tests that need to be updated. Hopefully that's not too hard |
Thanks a lot for pointing this out 😃 I have just checked it and now its looking as intended.
Is this due to some pixel-based render testing? I am not really sure how to update this, and whether I can do it in a way for you to review it later on. |
Yeah, it looks like most (or maybe all) are due to pixel matching. If you run the tests locally with |
Not sure if this previously occurred. In order to run the tests, I also hat to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test files look good to me. Only thing that stood out is test/fixtures/controller.line/fill/order-default.png
where the old test appears to have part of the line bleed through the green fill.
A few notes:
- yarn.lock should be removed. If the new packages are needed, package-lock.json should be updated
- We should add a note about the default change the v3 migration docs
This also surprised me. Wasn't expecting this to be influenced by
Done
Is this also missing for |
For that image I suspect the issue was likely a bad initial image (we have a small tolerance for the comparisons because sometimes things shift a bit based on browser implementation) so i wouldn't worry about it. It might be missing for |
Thanks for this! I would update the migration guide and elements config page Also https://www.chartjs.org/docs/master/general/performance#automatic-data-decimation-during-draw says:
You could change this now to state that these are all the default values. Also, it looks like maybe there's a stray backtick at the end of that sentence? Mind fixing while you're at it? |
Looks like this needs a rebase. |
@sebiniemann have you had a chance to look at the rebase for this? I'd love to get it in |
Not yet, will look into it over the weekend |
Should be fine now. Had chosen the wrong base branch. |
package.json
Outdated
@@ -37,6 +37,7 @@ | |||
"@rollup/plugin-commonjs": "^11.0.2", | |||
"@rollup/plugin-json": "^4.0.2", | |||
"@rollup/plugin-node-resolve": "^7.1.1", | |||
"babel-eslint": "^10.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good to me overall. I'm curious why you had to add this and the other estlint package. Did they catch any existing errors? Babel isn't used to build our main output file anymore for es6/npm users and is now only used for the UMD build. I'm guessing this isn't really needed since we've removed the experimental language features
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this isn't needed/existing anymore after merging with the most recent master
We are developing in |
I changed the base back to |
@sebiniemann the issue is using the font. Fonts are rendered slightly differently per browser. It does look unrelated; I'll update that test accordingly |
Re the changes in |
Yes. I was surprised that these appeared at all after merging with master and running I am also getting these changes when running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! thanks you for this. happy to have you contributing to the project! 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, one thing I just realized though. we should also add to docs/docs/getting-started/v3-migration.md
a mention that the default value has changed
@sebiniemann sorry, but would you be able to rebase this PR? I think if you do that and add a note to the migration guide that should be about it before we can merge this unless @kurkle has any additional thoughts Thanks again for this PR! |
I am currently afk and only had enough time for the merge, resolving conflicts and new test screenshots. If you want to merge soon, I can also open an new PR for the migration guide (and also adding a note about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be fine with merging and doing the docs update in a follow up since I think it will be easy to have merge conflicts with this one since it touches so many tests
Agreed, happy to see a later PR for the docs |
Co-authored-by: Sebastian Niemann <sn@wertpapiertreuhand.de>
As discussed in #6598, this MR turns off the interpolation by default.
This follows the idea behind #5939 to avoid potentially misleading charts per default.