mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Added IMAP MAP support into the new charts.
This commit is contained in:
parent
d24da37836
commit
243be31e82
@ -147,6 +147,9 @@ if ( !$content['error_occured'] )
|
||||
// echo $myKey . "<br>";
|
||||
$YchartData[] = intval($myData);
|
||||
$XchartData[] = strlen($myKey) > 0 ? $myKey : "Unknown";
|
||||
$chartImageMapLinks[] = $content['BASEPATH'] . "index.php?filter=" . strtolower ( $fields[$content['chart_field']]['FieldID'] ) . "%3A%3D" . $myKey . "&search=Search";
|
||||
$chartImageMapAlts[] = $content[ $fields[$content['chart_field']]['FieldCaptionID'] ] . ": " . $myKey;
|
||||
$chartImageMapTargets[] ="_top";
|
||||
}
|
||||
|
||||
if ( $content['chart_type'] == CHART_CAKE )
|
||||
@ -197,7 +200,7 @@ if ( !$content['error_occured'] )
|
||||
// $targ=array("pie3d_csimex1.php?v=1","pie3d_csimex1.php?v=2","pie3d_csimex1.php?v=3",
|
||||
// "pie3d_csimex1.php?v=4","pie3d_csimex1.php?v=5","pie3d_csimex1.php?v=6");
|
||||
// $alts=array("val=%d","val=%d","val=%d","val=%d","val=%d","val=%d");
|
||||
// $p1->SetCSIMTargets($targ,$alts);
|
||||
$p1->SetCSIMTargets($chartImageMapLinks, $chartImageMapAlts, $chartImageMapTargets);
|
||||
|
||||
// Set label format
|
||||
if ( $content['showpercent'] == 1 )
|
||||
@ -285,6 +288,9 @@ if ( !$content['error_occured'] )
|
||||
// $bplot->value->SetAlign('left','center');
|
||||
// $bplot->value->SetColor("black","darkred");
|
||||
$bplot->value->SetFormat('%d');
|
||||
|
||||
// Add links
|
||||
$bplot->SetCSIMTargets($chartImageMapLinks, $chartImageMapAlts, $chartImageMapTargets);
|
||||
|
||||
|
||||
// TODO: Make Optional!
|
||||
@ -372,6 +378,10 @@ if ( !$content['error_occured'] )
|
||||
// $bplot->value->SetColor("black","darkred");
|
||||
$bplot->value->SetFormat('%d');
|
||||
|
||||
// Add links
|
||||
$bplot->SetCSIMTargets($chartImageMapLinks, $chartImageMapAlts, $chartImageMapTargets);
|
||||
|
||||
|
||||
// TODO: Make Optional!
|
||||
// Create and Add filled line plot
|
||||
$lplot = new LinePlot($YchartData);
|
||||
@ -451,8 +461,8 @@ if ( $content['error_occured'] )
|
||||
// ---
|
||||
|
||||
// --- Output the image
|
||||
$graph->Stroke();
|
||||
//$graph->StrokeCSIM();
|
||||
//$graph->Stroke();
|
||||
$graph->StrokeCSIM();
|
||||
// ---
|
||||
|
||||
?>
|
@ -50,7 +50,7 @@
|
||||
<td class="line1"> {showpercent_display}</td>
|
||||
</tr>
|
||||
<tr><td class="{cssclass}" colspan="2">
|
||||
<img src="{BASEPATH}chartgenerator.php?type={chart_type}&byfield={chart_field}&width={chart_width}&maxrecords={maxrecords}&showpercent={showpercent}" width="{chart_width}" height="{chart_width}">
|
||||
<iframe scrolling="no" frameborder="0" marginwidth="0" marginheight="0" src="{BASEPATH}chartgenerator.php?type={chart_type}&byfield={chart_field}&width={chart_width}&maxrecords={maxrecords}&showpercent={showpercent}" width="{chart_width}" height="{chart_width}"></iframe>
|
||||
</td></tr>
|
||||
</table>
|
||||
<br><br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user