$( function() {
$( "#tabs" ).tabs({
activate: function( event, ui ) {
$('#activeTab').val($("#tabs").tabs('option', 'active'));
// DataChart #1 - On Time Perf LINE CHART
var on_time_chart = new google.visualization.DataTable();
on_time_chart.addColumn('string', 'Advisor');
on_time_chart.addColumn('number', 'On Time %');
on_time_chart.addColumn({type: 'number', role: 'annotation'});
on_time_chart.addRows(data);
var chart = new google.visualization.LineChart(document.getElementById('on_time_perf_chart'));
var options = {
width: '100%',
height: 300,
chartArea: {left:75, top:10, width:'80%', height:150},
pointSize: 4,
legend: {title: 'On Time%', position: 'bottom'},
hAxis: {slantedText: 1, slantedTextAngle:50},
vAxis: {title: '%'}
};
chart.draw(on_time_chart, google.charts.Line.convertOptions(options));
},
active: <?php echo (isset($_POST) && !empty($_POST['activeTab'])?$_POST['activeTab']:2 ); ?>
});
});