text: /*
  Template Name: Niche
  Author: UXLiner
  */
  $(function() {
      "use strict";
  
  // ======
  // Yearly Earning Starts
  // ======
  
  var day_data = [
    {"elapsed": "2012", "Sales": 60, "Earning": 80},
    {"elapsed": "2013", "Sales": 100, "Earning": 130},
    {"elapsed": "2014", "Sales": 70, "Earning": 50},
    {"elapsed": "2015", "Sales": 80, "Earning": 155},
    {"elapsed": "2016", "Sales": 155, "Earning": 105},
    {"elapsed": "2017", "Sales": 120, "Earning": 110},
    {"elapsed": "2018", "Sales": 250, "Earning": 180}
  ];
  Morris.Line({
    element: 'earning',
    data: day_data,
    xkey: 'elapsed',
    ykeys: ['Sales', 'Earning'],
    labels: ['Sales', 'Earning'],
    fillOpacity: 0,
    pointStrokeColors: ['#1976d2', '#26c6da'],
    behaveLikeLine: true,
    gridLineColor: '#e0e0e0',
    lineWidth: 3,
    hideHover: 'auto',
    lineColors: ['#5867dd', '#008cd3'],
    resize: true
  });
  
  // ======
  // Yearly Earning Ending
  // ======
  
  // ======
  // Area Chart Starts
  // ======
  
  Morris.Area({
    element: 'area',
    data: [
      {x: '2013', india: 100, usa: 30, uk: 10},
      {x: '2014', india: 20, usa: 110, uk: 90},
      {x: '2015', india: 120, usa: 35, uk: 15},
      {x: '2016', india: 60, usa: 90, uk: 70},
      {x: '2017', india: 130, usa: 40, uk: 20},
      {x: '2018', india: 60, usa: 80, uk: 5}
    ],
    xkey: 'x',
    ykeys: ['india', 'usa' , 'uk'],
    labels: ['India', 'USA', 'UK'],
    fillOpacity:0.9,
    pointStrokeColors: ['#778dcd', '#7088cc', '#2d3ec3'],
    behaveLikeLine: true,
    gridLineColor: '#e0e0e0',
    lineWidth: 0,
    smooth: true,
    hideHover: 'auto',
    lineColors: ['#4d64a7', '#778dcd' , '#2d3ec3'],
    resize: true
  });
  
  // ======
  // Area chart End
  // ======
  
  // ======
  // Donut Chart Starts
  // ======
  
  Morris.Donut({
        element: 'donut',
        data: [
          {value: 40, label: 'Student'},
          {value: 25, label: 'courses'},
          {value: 20, label: 'Download App'},
          {value: 15, label: 'Admin'}
        ],
        backgroundColor: '#fff',
        labelColor: '#404e67',
        colors: [
          '#ff4558',
          '#ff7d4d',
          '#00a5a8',
          '#626e82'
        ],
        formatter: function (x) { return x + "%"}
      });
  
  // ======
  // Donut chart End
  // ======
  
  // ======
  // Bar chart Start
  // ======
  Morris.Bar({
    element: 'bar-chart',
    data: [
      {x: '2011', y: 60, z: 20, a: 40},
      {x: '2011', y: 20, z: 50, a: 10},
      {x: '2011', y: 10, z: 50, a: 35},
      {x: '2011', y: 20, z: 40, a: 20}
    ],
    xkey: 'x',
    ykeys: ['y', 'z', 'a'],
    labels: ['Y', 'Z', 'A']
  }).on('click', function(i, row){
    console.log(i, row);
    resize: true
  });
  // ======
  // Bar chart End
  // ======
  
  })(jQuery);
  