Skip to content

Commit f263311

Browse files
committed
Changed chart size
1 parent 1fb28a8 commit f263311

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Mage_Adminhtml_Block_Dashboard_Graph extends Mage_Adminhtml_Block_Dashboar
6565
*
6666
* @var string
6767
*/
68-
protected $_height = '498px';
68+
protected $_height = '350px';
6969

7070
/**
7171
* Html identifier

app/design/adminhtml/default/default/template/dashboard/graph.phtml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@
6161
}]
6262
},
6363
options: {
64-
legend: {
65-
display: false
64+
responsive: true,
65+
maintainAspectRatio: false,
66+
plugins: {
67+
legend: {
68+
display: false
69+
}
6670
}
6771
}
6872
};

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ezyang/htmlpurifier": "^4.17",
3131
"magento-hackathon/magento-composer-installer": "^3.1 || ^2.1 || ^4.0",
3232
"mklkj/tinymce-i18n": "^24.11",
33-
"nnnick/chartjs": "4.4.7",
33+
"nnnick/chartjs": "^4.4.7",
3434
"openmage/composer-plugin": "dev-main",
3535
"pelago/emogrifier": "^7.0",
3636
"phpseclib/mcrypt_compat": "^2.0.3",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)