function ShowGraph()
{
	$('#divGraph').gchart({type: 'line', maxValue: 40, 
    title: 'Weather for|Brisbane, Australia', titleColor: 'green', 
    backgroundColor: $.gchart.gradient('horizontal', 'ccffff', 'ccffff00'), 
    series: [$.gchart.series('Max', [29.1, 28.9, 28.1, 26.3, 
        23.5, 21.2, 20.6, 21.7, 23.8, 25.6, 27.3, 28.6], 'red', 'ffcccc'), 
        $.gchart.series('Min', [20.9, 20.8, 19.5, 16.9, 
        13.8, 10.9, 9.5, 10.0, 12.5, 15.6, 18.0, 19.8], 'green'), 
        $.gchart.series('Rainfall', [157.7, 174.6, 138.5, 90.4, 
        98.8, 71.2, 62.6, 42.7, 34.9, 94.4, 96.5, 126.2], 'blue', 0, 200)], 
    axes: [$.gchart.axis('bottom', ['Jan', 'Feb', 'Mar', 'Apr', 
        'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 'black'), 
        $.gchart.axis('left', 0, 40, 'red', 'right'), 
        $.gchart.axis('left', ['C'], [50], 'red', 'right'), 
        $.gchart.axis('right', 0, 200, 50, 'blue', 'left'), 
        $.gchart.axis('right', ['mm'], [50], 'blue', 'left')], 
    legend: 'right' 
});;
}


function ShowGraphPie()
{
var sXML = '<?xml version="1.0" ?><ondemand><row></row><row><data><series label="Awaiting Final Submit|(Web Order)"><point y="10" /><point y="3" /></series></data></row></ondemand>';

var sXML = '<?xml version="1.0" ?><data><series label="Awaiting Final Submit (Web Order)|On Hold|Cancelled|Invoiced - In Progress|Requires Approval|On Back Order / Part Delivered|Not Started|Completed|Processing|To Be Processed" color="010202|EE2E2F|008C48|185AA9|F47D23|662C91|A21D21|B43894|CCCCCC|F2AFAD|D9E4AA|B8D2EC|F3D1B0|D5B2D4|DDB9A9|EBC0DA"><point y="1" /><point y="3" /><point y="4" /><point y="4" /><point y="5" /><point y="51" /><point y="101" /><point y="110" /><point y="153" /><point y="191" /></series></data>'

$('#divGraph').gchart({type: 'pie', legend: 'right', color: ['red', 'lime', 'blue'], series: $.gchart.seriesFromXml(sXML)}); 
         
$('#xmlLoad').click(function() { 
    $('#xmlChart').gchart('change', 
        {series: $.gchart.seriesFromXml(sXML)}); 
});
}



