-
-
Notifications
You must be signed in to change notification settings - Fork 440
feat: add "Last 3 Months" and "Last 6 Months" to dashboard charts #4739
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
base: main
Are you sure you want to change the base?
Conversation
@hirale - Please add the translation phrases in /app/locale/en_US/Mage_Adminhtml.csv |
Economically speaking, displaying fast information in a chart about sales can be done on the current day, week, month, on quarters of a year or on the whole year. Week should be the default value. Questions:
|
Imho 3/6 months should not be a reduced view from year information. *
* No. :) |
Btw .. for complete custom reports try https://github.com/kalenjordan/custom-reports/ If there is interst in i can update it to chart.js too |
I think this time period should be consistent with the report module. The current report module has options such as 24h, 7d, 1m, 3m, 6m, 1y, and 2y. |
Is 9m a usefull option at all? 2y is okay, imho. |
|
wow. update screenshot? :) |
Pretty cool! ❤️ Not needed, nor requested ... only an idea.
magento-lts/app/design/adminhtml/default/default/template/dashboard/graph.phtml Lines 53 to 57 in e43aba9
|
Regarding the axis labels, the week calculation isn’t based on the start of the year, but rather from the For combination of orders and amounts, i think it's better to create new PR with the below chart type. https://www.chartjs.org/docs/latest/samples/other-charts/combo-bar-line.html |
You can get the week from a given date, see https://carbon.nesbot.com/docs/#api-week As said, for another PR ... maybe #4463, but i have to fix tests first. Thanks! |
Description (*)
Add "Last 3 Months" and "Last 6 Months" to dashboard charts
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)