title: How can I configure Chart.js in a Electron app?
body: <p>I'm new to electron so I'm learning the basic configuration.</p>
  <p>So, i want to implement chart.js in my electron app.
  The problem is: on my main page, the chart is simply a blank space... but with a look in the html inspector I can see the canvas created.</p>
  <p>What I already did:</p>
  <ol>
  <li>I've installed chart.js with <code>npm install chart.js --save</code> which we can find in the official chart.js documentation (<a href="https://www.chartjs.org/docs/latest/getting-started/installation.html" rel="nofollow noreferrer">https://www.chartjs.org/docs/latest/getting-started/installation.html</a>).</li>
  </ol>
  <p>My feeling tells me that I'm doing something wrong in the call for the chart library or something like that. My code is below:</p>
  <pre><code>&lt;canvas id=&quot;myChart&quot;&gt;&lt;/canvas&gt;
  
  &lt;script&gt;
  const { chart } = require('electron-chartjs');
  var ctx = document.getElementById('myChart').getContext('2d');
  var chart = new Chart(ctx, {
      // The type of chart we want to create
      type: 'line',
  
      // The data for our dataset
      data: {
          labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
          datasets: [{
              label: 'My First dataset',
              backgroundColor: 'rgb(255, 99, 132)',
              borderColor: 'rgb(255, 99, 132)',
              data: [0, 10, 5, 2, 20, 30, 45]
          }]
      },
  
      // Configuration options go here
      options: {}
  });
  &lt;/script&gt;
  </code></pre>
  <p>As you can see, I'm using the official example. The only addition was the <code>const { chart } = require('electron-chartjs');</code>. So, I believe I'm doing something wrong or ignoring some big step.</p>