jQuery(document).ready(function(){ jQuery('#wpta_trend').hide(); jQuery('#wpta_powered').hide(); var d3 = []; if(d3.length>0){ if(jQuery('#trenddiv').length>0){ jQuery.jqplot('trenddiv', [d3], { animate:true, axes : { xaxis:{ renderer: jQuery.jqplot.DateAxisRenderer, labelRenderer:jQuery.jqplot.CanvasAxisLabelRenderer, tickRenderer:jQuery.jqplot.CanvasAxisTickRenderer, tickOptions: { formatString:'%d %b %y', show:true, angle:-20 }, showTicks:false, showTickMarks:true }, yaxis:{ tickOptions:{ show:true }, showTicks:true, showTickMarks:true, //label:'Visitors', //labelRenderer:jQuery.jqplot.CanvasAxisLabelRenderer } }, highlighter: { show: true, tooltipLocation : 'sw', formatString : '
Date%s
Visitors%d
' } } ); } }else{ jQuery('#trenddiv').html("No Data Found"); } } );