title: how to use chart.js in angular 7
body: <p>my chart.js is not displaying</p>
  
  <p>The is an admin dashboard, am trying to display a graph of revenues for the year. But am trying the tutorial, before passing real data.</p>
  
  <pre><code>ngOnInit() {
      this.createChart();
    }
  
    createChart() {
      const revenueLineChart = new Chart('revenueLineChart', {
        type: 'line',
        data: {
          labels: Object.values(Months),
          datasets: [
            {
              label: 'Monthly Revenues For The Year',
              data: [2, 3, 5, 7, 8, 6, 7, 9, 4, 3, 0, 8],
              fill: false,
              lineTension: 0.2,
              borderColor: 'red',
              borderWidth: 1,
            }
          ],
        },
        options: {
          title: {
            text: 'Monthly Revenue',
            display: true
          },
          scales: {
            yAxes: [
              {
                ticks: {
                  beginAtZero: true
                }
              }
            ]
          }
        },
      });
    }
  </code></pre>