text: $(function (){
    'use strict';
  
    var randomScalingFactor = function(){ return Math.round(Math.random()*100)};
    var lineChartData = {
      labels : ['فروردین','اردیبهشت','خرداد','تیر','مرداد','شهریور','مهر'],
      datasets : [
        {
          label: 'اولین مجموعه داده',
          backgroundColor : 'rgba(220,220,220,0.2)',
          borderColor : 'rgba(220,220,220,1)',
          pointBackgroundColor : 'rgba(220,220,220,1)',
          pointBorderColor : '#fff',
          data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
        },
        {
          label: 'دومین مجموعه داده',
          backgroundColor : 'rgba(151,187,205,0.2)',
          borderColor : 'rgba(151,187,205,1)',
          pointBackgroundColor : 'rgba(151,187,205,1)',
          pointBorderColor : '#fff',
          data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
        }
      ]
    }
  
    var ctx = document.getElementById('canvas-1');
    var chart = new Chart(ctx, {
      type: 'line',
      data: lineChartData,
      options: {
        responsive: true
      }
    });
  
  
    var randomScalingFactor = function(){ return Math.round(Math.random()*100)};
    var barChartData = {
      labels : ['فروردین','اردیبهشت','خرداد','تیر','مرداد','شهریور','مهر'],
      datasets : [
        {
          backgroundColor : 'rgba(220,220,220,0.5)',
          borderColor : 'rgba(220,220,220,0.8)',
          highlightFill: 'rgba(220,220,220,0.75)',
          highlightStroke: 'rgba(220,220,220,1)',
          data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
        },
        {
          backgroundColor : 'rgba(151,187,205,0.5)',
          borderColor : 'rgba(151,187,205,0.8)',
          highlightFill : 'rgba(151,187,205,0.75)',
          highlightStroke : 'rgba(151,187,205,1)',
          data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
        }
      ]
    }
    var ctx = document.getElementById('canvas-2');
    var chart = new Chart(ctx, {
      type: 'bar',
      data: barChartData,
      options: {
        responsive: true
      }
    });
  
  
    var doughnutData = {
      labels: [
        'قرمز',
        'سبز',
        'زرد'
      ],
      datasets: [{
        data: [300, 50, 100],
        backgroundColor: [
          '#FF6384',
          '#36A2EB',
          '#FFCE56'
        ],
        hoverBackgroundColor: [
          '#FF6384',
          '#36A2EB',
          '#FFCE56'
        ]
      }]
    };
    var ctx = document.getElementById('canvas-3');
    var chart = new Chart(ctx, {
      type: 'doughnut',
      data: doughnutData,
      options: {
        responsive: true
      }
    });
  
  
    var radarChartData = {
      labels: ['خوردن', 'نوشیدن', 'خوابیدن', 'طراحی', 'کدنویسی', 'دور زدن', 'دویدن'],
      datasets: [
        {
          label: 'اولین مجموعه دادن من',
          backgroundColor: 'rgba(220,220,220,0.2)',
          borderColor: 'rgba(220,220,220,1)',
          pointBackgroundColor: 'rgba(220,220,220,1)',
          pointBorderColor: '#fff',
          pointHighlightFill: '#fff',
          pointHighlightStroke: 'rgba(220,220,220,1)',
          data: [65,59,90,81,56,55,40]
        },
        {
          label: 'دومین مجموعه دادن من',
          backgroundColor: 'rgba(151,187,205,0.2)',
          borderColor: 'rgba(151,187,205,1)',
          pointBackgroundColor: 'rgba(151,187,205,1)',
          pointBorderColor: '#fff',
          pointHighlightFill: '#fff',
          pointHighlightStroke: 'rgba(151,187,205,1)',
          data: [28,48,40,19,96,27,100]
        }
      ]
    };
    var ctx = document.getElementById('canvas-4');
    var chart = new Chart(ctx, {
      type: 'radar',
      data: radarChartData,
      options: {
        responsive: true
      }
    });
  
  
    var pieData = {
      labels: [
        'قرمز',
        'سبز',
        'زرد'
      ],
      datasets: [{
        data: [300, 50, 100],
        backgroundColor: [
          '#FF6384',
          '#36A2EB',
          '#FFCE56'
        ],
        hoverBackgroundColor: [
          '#FF6384',
          '#36A2EB',
          '#FFCE56'
        ]
      }]
    };
    var ctx = document.getElementById('canvas-5');
    var chart = new Chart(ctx, {
      type: 'pie',
      data: pieData,
      options: {
        responsive: true
      }
    });
  
  
    var polarData = {
      datasets: [{
        data: [
          11,
          16,
          7,
          3,
          14
        ],
        backgroundColor: [
          '#FF6384',
          '#4BC0C0',
          '#FFCE56',
          '#E7E9ED',
          '#36A2EB'
        ],
        label: 'مجموعه داده های من' // for legend
      }],
      labels: [
        'قرمز',
        'سبز',
        'زرد',
        'خاکستری',
        'آبی'
      ]
    };
    var ctx = document.getElementById('canvas-6');
    var chart = new Chart(ctx, {
      type: 'polarArea',
      data: polarData,
      options: {
        responsive: true
      }
    });
  });
  