@DanielSore,
Glad that you figured it out. Also, below are the steps to import CanvasJS chart in an electron app.
1. Download the library from our download page and save it in your source folder.
2. To use CanvasJS Chart in your electron app, you need to import CanvasJS from canvasjs.min.js. Please find the below snippet for the same
var CanvasJS = require('./canvasjs.min')
Here is a complete code example for integrating Chart with an electon app.
__
Priyanka M S
Team CanvasJS