-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Improve dashboard charts - migrate to chart.js #26923
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
Improve dashboard charts - migrate to chart.js #26923
Conversation
Hi @Bartlomiejsz. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@magento give me test instance |
Hi @ihor-sviziev. Thank you for your request. I'm working on Magento instance for you |
Hi @ihor-sviziev, here is your new Magento instance. |
@Bartlomiejsz looks really promising, however you've reused/removed big parts of code that was used originally, some of these parts marked as "@api", so they can't contain backward incompatible changes. |
app/code/Magento/Backend/Controller/Adminhtml/Dashboard/Graph/Amounts.php
Outdated
Show resolved
Hide resolved
Sure @ihor-sviziev, I'll work on moving new functionalities to newly create classes, thank you for review. |
@Bartlomiejsz |
42756cf
to
3f9c990
Compare
@magento run all tests |
5a8b58e
to
41fbdb2
Compare
@Bartlomiejsz, you are right, I just double checked that. |
@lenaorobei from what I can see now, it seems it is related, at least was :) It was checking if after placing an order image chart is displayed. So this may indeed require some adjustments after my changes, I'll try to do that, will keep you posted in case of issues |
MC-31973 is approved and we are ready to move forward with it. |
Hi @lenaorobei, thank you for the review. |
Hi @lenaorobei, in that case changes to this single MFTF test I should probably introduce as separate PR once this will be merged, am I right? |
@Bartlomiejsz yes, let's do separate PR. Thanks. |
@magento run all tests |
@magento run Integration Tests |
Hi @Bartlomiejsz, thank you for your contribution! |
Yeah! It was finally merged! That’s amazing contribution @Bartlomiejsz! Thank you so much! |
Thanks @ihor-sviziev and thank you for your help on this! |
Description (*)
This PR aims to migrate dashboard charts to chart.js library instead of static images.

Fixes magento/community-features#186
This is preview of new charts:
Related Pull Requests
Manual testing scenarios (*)
Complete
statusQuestions or comments
Contribution checklist (*)