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