Closed
Description
Y-axis on dashboard graph always shows range 0 to 100 in steps of 10. That means quantity and amounts do not match actual value in graph.
Preconditions
- Any working setup for Magento 2
- Tested on 2.1.1, but it probably doesn't work in any other
Steps to reproduce
- Make few orders and look at the graph in admin dashboard
Expected result
- Values shown should be matched with y-axis value
Actual result
- It always show range 10 to 100 in steps of 10 and values (qty and amounts) doesn't make sense with that values
Fortunately, that issue is easy to fix:
This code (exists in M1, not in M2) needs to be inserted on line 424 in vendor/magento/module-backend/Block/Dashboard/Graph.php (thanks to @ivanweiler)
} else if ($idx == 'y') {
$valueBuffer[] = $indexid . ":|" . implode('|', $yLabels);
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release