score:2

Accepted answer

This is bug in Highcharts, after writing to the stream, stream should be closed, so this should look this way:

                if (!runsAsServer) {
                    // write the file
                    svgFile = fs.open(output, "w");
                    svgFile.write(svg);
                    svgFile.close(); //add this line
                    exit(output);
                } else {
                    // return the svg as a string
                    exit(svg);
                }

Reported: https://github.com/highslide-software/highcharts.com/issues/1869


Related Query

More Query from same tag