2011-09-28 Sergio Martin <sergio.martin@artica.es>

* include/functions_graph.php: Fixed graphs engine to fix
	reports graphs swap between horizontal and vertical and 
	pdf view for bugs 3414107 and 3414124



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5019 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-09-28 13:36:34 +00:00
parent ab8cd93114
commit a96e0b1988
2 changed files with 14 additions and 8 deletions
pandora_console

View File

@ -1,3 +1,9 @@
2011-09-28 Sergio Martin <sergio.martin@artica.es>
* include/functions_graph.php: Fixed graphs engine to fix
reports graphs swap between horizontal and vertical and
pdf view for bugs 3414107 and 3414124
2011-09-28 Sergio Martin <sergio.martin@artica.es>
* include/javascript/jquery.pandora.controls.js: Moved part

View File

@ -1455,20 +1455,20 @@ function graph_custom_sql_graph ($id, $width, $height, $type = 'sql_graph_vbar',
switch ($type) {
case 'sql_graph_vbar': // vertical bar
return hbar_graph($flash_charts, $data, $width, $height, array(),
array(), "", "", false, $homeurl,
$config['homedir'] . "/images/logo_vertical_water.png",
$config['fontpath'], $config['font_size'], false);
break;
case 'sql_graph_hbar': // horizontal bar
return vbar_graph($flash_charts, $data, $width, $height, array(),
array(), "", "", $homeurl,
$config['homedir'] . "/images/logo_vertical_water.png",
$config['fontpath'], $config['font_size'], false);
$config['fontpath'], $config['font_size'], false, $ttl);
break;
case 'sql_graph_hbar': // horizontal bar
return hbar_graph($flash_charts, $data, $width, $height, array(),
array(), "", "", $homeurl,
$config['homedir'] . "/images/logo_vertical_water.png",
$config['fontpath'], $config['font_size'], false, $ttl);
break;
case 'sql_graph_pie': // Pie
return pie3d_graph($flash_charts, $data, $width, $height, __("other"), $homeurl,
$config['homedir'] . "/images/logo_vertical_water.png", $config['fontpath']);
$config['homedir'] . "/images/logo_vertical_water.png", $config['fontpath'], '', $ttl);
break;
}
}