$(document).ready(function(){
 "use strict";
 //var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];

Morris.Bar({
        element: 'morris-bar-chart',
        data: [{
            y: 'JAN',
            Sale: 88,
            Rent: 70,
            c: 59
        }, {
            y: 'FEB',
            Sale: 75,
            Rent: 65,
            c: 40
        }, {
            y: 'MAR',
            Sale: 50,
            Rent: 40,
            c: 30
        }, {
            y: 'APR',
            Sale: 75,
            Rent: 65,
            c: 40
        }, {
            y: 'MAY',
            Sale: 50,
            Rent: 40,
            c: 30
        }, {
            y: 'JUN',
            Sale: 75,
            Rent: 65,
            c: 40
        },{
            y: 'JUL',
            Sale: 75,
            Rent: 65,
            c: 40
        },{
            y: 'AUG',
            Sale: 75,
            Rent: 65,
            c: 40
        },{
            y: 'SEP',
            Sale: 75,
            Rent: 65,
            c: 40
        },{
            y: 'OCT',
            Sale: 75,
            Rent: 65,
            c: 40
        },{
            y: 'NOV',
            Sale: 75,
            Rent: 65,
            c: 40
        },{
            y: 'DEC',
            Sale: 100,
            Rent: 90,
            c: 40
        }],
        xkey: 'y',
        ykeys: ['Sale', 'Rent', 'c'],
        labels: ['Sales', 'Revenue', 'Expenses'],
        barColors:['#f57c00', '#2eca6a', '#0d6efd'],
		xLabelAngle: 60,
        hideHover: 'auto',
         barSizeRatio:0.45,
        gridLineColor: '#eef0f2',
        resize: true
		
    });

	//comparing daily sales products
	Morris.Donut({
	  element: 'dailysalesproducts',
	  data: [
		{value: 56, label: 'Bread'},
		{value: 13, label: 'Rolex'},
		{value: 11, label: 'Chapati'},
		{value: 10, label: 'CupCake'},
		{value: 9, label: 'PanCakes'},
		{value: 2, label: 'Cake'}
	  ],
	  backgroundColor: '#fff',
	  fontsize: '12px',
	  labelColor: '#060',
	  colors: [
		'#F0B500',
		'#A52727',
		'#00B2B2',
		'#D96D00',
		'#4D7AFF',
		'#FF4DFF'
	  ],
	  formatter: function (x) { return x + "%"}
	});
	
}); 