fixed error template availability
Former-commit-id: 249e476d8fa4394fda0cf5df01b7b14dca8d2bea
This commit is contained in:
parent
7f9ee21b4b
commit
84a0f227b9
|
@ -414,7 +414,7 @@ function flot_pie_chart ($values, $labels, $width, $height, $water_mark,
|
||||||
$return .= "pandoraFlotPie('$graph_id', '$values', '$labels',
|
$return .= "pandoraFlotPie('$graph_id', '$values', '$labels',
|
||||||
'$series', '$width', $font_size, $water_mark, '$separator',
|
'$series', '$width', $font_size, $water_mark, '$separator',
|
||||||
'$legend_position', '$height', '$colors', " . json_encode($hide_labels) . ")";
|
'$legend_position', '$height', '$colors', " . json_encode($hide_labels) . ")";
|
||||||
|
$return .= "});";
|
||||||
$return .= "</script>";
|
$return .= "</script>";
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
|
@ -474,11 +474,11 @@ function flot_custom_pie_chart ($graph_values,
|
||||||
$colors = implode($separator, $temp_colors);
|
$colors = implode($separator, $temp_colors);
|
||||||
|
|
||||||
$return .= "<script type='text/javascript'>";
|
$return .= "<script type='text/javascript'>";
|
||||||
|
$return .= "$(document).ready( function () {";
|
||||||
$return .= "pandoraFlotPieCustom('$graph_id', '$values', '$labels',
|
$return .= "pandoraFlotPieCustom('$graph_id', '$values', '$labels',
|
||||||
'$width', $font_size, '$fontpath', $water_mark,
|
'$width', $font_size, '$fontpath', $water_mark,
|
||||||
'$separator', '$legend_position', '$height', '$colors','$legend','$background_color')";
|
'$separator', '$legend_position', '$height', '$colors','$legend','$background_color')";
|
||||||
|
$return .= "});";
|
||||||
$return .= "</script>";
|
$return .= "</script>";
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
|
@ -575,10 +575,10 @@ function flot_hcolumn_chart ($graph_data, $width, $height, $water_mark, $font =
|
||||||
|
|
||||||
// Javascript code
|
// Javascript code
|
||||||
$return .= "<script type='text/javascript'>";
|
$return .= "<script type='text/javascript'>";
|
||||||
|
$return .= "$(document).ready( function () {";
|
||||||
$return .= "pandoraFlotHBars('$graph_id', '$values', '$labels',
|
$return .= "pandoraFlotHBars('$graph_id', '$values', '$labels',
|
||||||
false, $max, '$water_mark', '$separator', '$separator2', '$font', $font_size, '$background_color', '$tick_color', $val_min, $val_max)";
|
false, $max, '$water_mark', '$separator', '$separator2', '$font', $font_size, '$background_color', '$tick_color', $val_min, $val_max)";
|
||||||
|
$return .= "});";
|
||||||
$return .= "</script>";
|
$return .= "</script>";
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
|
@ -666,7 +666,7 @@ function flot_vcolumn_chart ($graph_data, $width, $height, $color, $legend, $lon
|
||||||
|
|
||||||
// Javascript code
|
// Javascript code
|
||||||
$return .= "<script type='text/javascript'>";
|
$return .= "<script type='text/javascript'>";
|
||||||
|
$return .= "$(document).ready( function () {";
|
||||||
if ($from_ux) {
|
if ($from_ux) {
|
||||||
if($from_wux){
|
if($from_wux){
|
||||||
$return .= "pandoraFlotVBars('$graph_id', '$values', '$labels', '$labels', '$legend', '$colors', false, $max, '$water_mark', '$separator', '$separator2','$font',$font_size, true, true, '$background_color', '$tick_color')";
|
$return .= "pandoraFlotVBars('$graph_id', '$values', '$labels', '$labels', '$legend', '$colors', false, $max, '$water_mark', '$separator', '$separator2','$font',$font_size, true, true, '$background_color', '$tick_color')";
|
||||||
|
@ -678,7 +678,7 @@ function flot_vcolumn_chart ($graph_data, $width, $height, $color, $legend, $lon
|
||||||
else {
|
else {
|
||||||
$return .= "pandoraFlotVBars('$graph_id', '$values', '$labels', '$labels', '$legend', '$colors', false, $max, '$water_mark', '$separator', '$separator2','$font',$font_size, false, false, '$background_color', '$tick_color')";
|
$return .= "pandoraFlotVBars('$graph_id', '$values', '$labels', '$labels', '$legend', '$colors', false, $max, '$water_mark', '$separator', '$separator2','$font',$font_size, false, false, '$background_color', '$tick_color')";
|
||||||
}
|
}
|
||||||
|
$return .= "});";
|
||||||
$return .= "</script>";
|
$return .= "</script>";
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
|
@ -841,7 +841,9 @@ function flot_slicesbar_graph (
|
||||||
// Javascript code
|
// Javascript code
|
||||||
$return .= "<script type='text/javascript'>";
|
$return .= "<script type='text/javascript'>";
|
||||||
$return .= "//<![CDATA[\n";
|
$return .= "//<![CDATA[\n";
|
||||||
|
$return .= "$(document).ready( function () {";
|
||||||
$return .= "pandoraFlotSlicebar('$graph_id','$values','$datacolor','$labels','$legend','$acumulate_data',$intervaltick,'$fontpath',$fontsize,'$separator','$separator2',$id_agent,'$full_legend_date',$not_interactive, '$show')";
|
$return .= "pandoraFlotSlicebar('$graph_id','$values','$datacolor','$labels','$legend','$acumulate_data',$intervaltick,'$fontpath',$fontsize,'$separator','$separator2',$id_agent,'$full_legend_date',$not_interactive, '$show')";
|
||||||
|
$return .= "});";
|
||||||
$return .= "\n//]]>";
|
$return .= "\n//]]>";
|
||||||
$return .= "</script>";
|
$return .= "</script>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue