implementation of the pie chart using OFC

This commit is contained in:
Martynas Mickevicius
2010-06-14 23:36:52 +03:00
parent 1f378cef7f
commit 9e25d0536d
5 changed files with 214 additions and 5 deletions

View File

@@ -587,9 +587,22 @@ foreach ($used_queries as $name => $value) {
?>
</tbody>
</table>
<div>
<?php echo PMA_chart_pie($used_queries); ?>
</div>
</div>
<div>
<table>
<tr><td>
<?php
// format keys which will be shown in the chart
$chart_data = array();
foreach($used_queries as $key => $value) {
$key = str_replace(array('Com_', '_'), array('', ' '), $key);
$chart_data[ucwords($key)] = (int)$value;
}
echo PMA_chart_pie(__('Query type'), $chart_data);
?>
</td></tr>
</table>
</div>
<div id="serverstatussection">