Yeah, I don't really explain things 'cause I'm lazy. Sorry.
So this is what I did.
Downloaded the latest [url=http://www.jqplot.com/]jqplot[/url].
Extracted archive.
Renamed dist directory to jqplot.
Replaced OAv2\www\theme-tango\tango-files\jquery\js\jqplot with new jqplot.
Added excanvas call to OAv2\code_igniter\system\application\views\theme-tango\v_partition_graph.php.
Tested the disk usage graphing which seems to work. Or not if you do the same and it doesn't work. Didn't test anything else so the above steps could break all kinds of other things. That's for Mark to fix.
v_partition_graph.php
[code]
<!--[if lt IE 9]><script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/excanvas.min.js'; ?>" type="text/javascript"></script><![endif]-->
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/jquery.jqplot.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.logAxisRenderer.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.canvasTextRenderer.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.canvasAxisTickRenderer.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.dateAxisRenderer.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.categoryAxisRenderer.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.barRenderer.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.trendline.min.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.highlighter.min.js'; ?>" type="text/javascript"></script>
<script src="<?php echo base_url() . 'theme-' . $user_theme . '/' . $user_theme . '-files/jquery/js/jqplot/plugins/jqplot.cursor.min.js'; ?>" type="text/javascript"></script>
<?php
#echo "<pre>\n";
#print_r($query);
#echo "</pre>\n";
$line1 = "[";
foreach ($query as $partition)
{
$line1 .= "['" . $partition->timestamp . "', " . $partition->percent_used . "], ";
}
$line1 = substr($line1, 0, (strlen($line1) - 2));
$line1 .= "];";
foreach ($partition_details as $partition)
{
$graph_title = str_replace("\\", "\\\\", $partition->partition_mount_point) . " (" . $partition->partition_mount_type . ")";
}
?>
<script type="text/javascript" language="javascript">
$(document).ready(function(){
$.jqplot.config.enablePlugins = true;
line1 = <?php echo $line1 . "\n"; ?>
plot1 = $.jqplot('chart1', [line1], {
title:'<?php echo $graph_title; ?>',
legend: {show:false},
axesDefaults: {
tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
tickOptions: {
angle: -45,
fontSize: '10pt'
}
},
axes:{
xaxis:{
autoscale: true,
renderer:$.jqplot.DateAxisRenderer,
tickInterval:'1 day'
},
yaxis:{
min:0,
max:100,
tickOptions:{formatString:'%% %.2i'}
}
},
highlighter: {sizeAdjust: 7.5},
cursor: {show: false}
});
});
</script>
<br /><br /><br /><br /><br /><br />
<div class="jqplot" id="chart1"></div>
[/code]