Пример #1
0
		}


		if ($('#morris-widget-2').length > 0){
		//MORRIS
		Morris.Bar({
		  element: 'morris-widget-2',
		 data: [
		    { y: 'March', a: 14960, b: 16511},
			{ y: 'April', a: 39050, b: 19811},
			{ y: 'May', a: 50590, b: 5511},
			{ y: 'June', a: 44985, b: 25511},
			{ y: 'July', a: 86808, b: 35511},
			<?php 
foreach ($sale_monthly_report as $key => $value) {
    echo "{ y: '" . $dashboard->_date($format = 'F', $value->salepro_datetime) . "', a: " . $value->bill_amount . ", b: 1000},";
}
?>
		  ],
		  xkey: 'y',
		  ykeys: ['a', 'b'],
		  labels: ['Sale', 'Profit'],
		  barColors: ['#3BAFDA', '#8CC152']
		});
		}
		if ($('#morris-donut-example').length > 0){
			Morris.Donut({
			  element: 'morris-donut-example',
			  data: [
			    {label: "Download Sales", value: 12},
			    {label: "In-Store Sales", value: 30},