Add more padding to accomodate row of graphs that have large y-axis text

Slightly reduced the height of rows of graphs
This commit is contained in:
Louis Bailleul
2015-11-24 16:44:49 +00:00
parent 6bd84ee94f
commit c4d774e8d7

View File

@ -39,7 +39,7 @@ else {
if($_SESSION['screen_width']) {
if($_SESSION['screen_width'] > 800) {
$graph_array['width'] = ($_SESSION['screen_width'] - 400 )/count($periods)+1;
$graph_array['width'] = ($_SESSION['screen_width'] - 430 )/count($periods)+1;
}
else {
$graph_array['width'] = $_SESSION['screen_width'] - 155;
@ -48,7 +48,7 @@ if($_SESSION['screen_width']) {
if($_SESSION['screen_height']) {
if($_SESSION['screen_width'] > 960) {
$graph_array['height'] = ($_SESSION['screen_height'] - 250)/4;
$graph_array['height'] = ($_SESSION['screen_height'] - 250)/5;
}
else {
$graph_array['height'] = ($_SESSION['screen_height'] - 250)/2;