I have a simple line graph as follows:
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
label: {
show: true,
},
}
]
};
When running this is the echarts examples site as well as codepen.io, the data labels are rendered correctly.

However, when I run echarts in Node.JS, the data labels and sybmols (not included here) are missing.

NODE.JS code:
var fs = require("fs");
var echarts = require("echarts");
const { createCanvas } = require("canvas");
const { number } = require("echarts");
fs.readFile('options.json', 'utf8', (err, data) => {
var options = JSON.parse(data);
const canvas = createCanvas(500, 300, "svg");
const chart = echarts.init(canvas);
chart.setOption(options);
var svgContent = svg.toBuffer("image/svg+xml");
fs.writeFile('options.svg', svgContent, err => { });
});