[SQL charts] Fixed SQL vertical chart
This commit is contained in:
parent
bb313fc6c6
commit
d0bf68888e
|
@ -3949,9 +3949,28 @@ function graph_custom_sql_graph ($id, $width, $height,
|
|||
|
||||
switch ($type) {
|
||||
case 'sql_graph_vbar': // vertical bar
|
||||
return vbar_graph($flash_charts, $data, $width, $height, array(),
|
||||
array(), "", "", $homeurl, $water_mark,
|
||||
$config['fontpath'], $config['font_size'], false, $ttl, "", "white", false, false, "black");
|
||||
return vbar_graph(
|
||||
$flash_charts,
|
||||
$data,
|
||||
$width,
|
||||
$height,
|
||||
array(),
|
||||
array(),
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
$water_mark,
|
||||
$config['fontpath'],
|
||||
$config['font_size'],
|
||||
"",
|
||||
$ttl,
|
||||
$config['homeurl'],
|
||||
"white",
|
||||
false,
|
||||
false,
|
||||
"black"
|
||||
);
|
||||
break;
|
||||
case 'sql_graph_hbar': // horizontal bar
|
||||
return hbar_graph($flash_charts, $data, $width, $height, array(),
|
||||
|
|
|
@ -152,11 +152,29 @@ function slicesbar_graph($chart_data, $period, $width, $height, $colors,
|
|||
return "<img src='".$home_url."include/graphs/functions_pchart.php?static_graph=1&graph_type=slicebar&ttl=".$ttl."&id_graph=".$id_graph."' style='width:100%;'>";
|
||||
}
|
||||
|
||||
function vbar_graph($flash_chart, $chart_data, $width, $height,
|
||||
$color, $legend, $long_index, $no_data_image, $xaxisname = "",
|
||||
$yaxisname = "", $water_mark = "", $font = '', $font_size = '',
|
||||
$unit = '', $ttl = 1, $homeurl = '', $backgroundColor = 'white',
|
||||
$from_ux = false, $from_wux = false, $tick_color = 'white') {
|
||||
function vbar_graph(
|
||||
$flash_chart,
|
||||
$chart_data,
|
||||
$width,
|
||||
$height,
|
||||
$color,
|
||||
$legend,
|
||||
$long_index,
|
||||
$no_data_image,
|
||||
$xaxisname = "",
|
||||
$yaxisname = "",
|
||||
$water_mark = "",
|
||||
$font = '',
|
||||
$font_size = '',
|
||||
$unit = '',
|
||||
$ttl = 1,
|
||||
$homeurl = '',
|
||||
$backgroundColor = 'white',
|
||||
$from_ux = false,
|
||||
$from_wux = false,
|
||||
$tick_color = 'white'
|
||||
) {
|
||||
|
||||
setup_watermark($water_mark, $water_mark_file, $water_mark_url);
|
||||
|
||||
if (empty($chart_data)) {
|
||||
|
|
Loading…
Reference in New Issue