score:1
Unfortunately, it is not possible to get a response as an SVG string instead of the file. However, it can be achieved by reading the file returned by the export callback. Optionally after this operation, the file can be removed.
Code:
exporter.export(exportSettings, function(err, res) {
if (res.filename) {
let svgString = fs.readFileSync(res.filename, 'utf8');
console.log(svgString);
// Remove the file optionally
fs.unlinkSync(res.filename);
}
exporter.killPool();
process.exit(1);
});
Source: stackoverflow.com
Related Query
- Highcharts Node.js Export Server - gettting output in SVG string
- Highcharts SVG Export from Python Server Side Code
- Highcharts phantomjs export server can't parse json string
- Issues using highcharts node export server from ClojureScript - "0x03 error when performing chart generation"
- Is it possible to export HTML along with SVG markup to the Highcharts Export Server (http://export.highcharts.com/)
- POST svg output from HighCharts to an internal server
- Export Highcharts to PDF (using javascript and local server - no internet connection)
- I can't make Highcharts phantomJs export server work
- Highcharts export chart exportSettings with svg file
- ASP.NET WebRequest to Highcharts export server
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Generation of svg on server side using highcharts
- HIghcharts export server hosting ph-batik
- Highcharts Export Server on AWS Lambda
- highcharts export server js script error codes
- HighCharts Export Server not creating image
- How to update the highcharts.js to make the export server to my own ipaddress,instead of connect to the highcharts server?
- Highcharts datalabel formatter for export server
- Highcharts - How to export graphic server side?
- incorrect highcharts export server js script error codes
- Overriding log scale with highcharts export server
- Add Source to Highcharts Export CSV
- Highcharts Export server - Can't generate image using --options
- Highcharts Export Renderer Image - Only SVG visible
- Highcharts export (PhantomJS) to server does not show words
- highcharts export server not working out of the box (Java)
- Issues Getting Highcharts Export Server Running Under iisnode
- Highcharts Node.js export server : Connection error
- POST parameters for the Highcharts export server causes 407 Proxy Authentication Error
- Highcharts svg convert to png with server
More Query from same tag
- Small HighCharts disappear
- Highchart: Line at bottom-border appear
- Highchart showing indicator at last point for line chart
- Highcharts: Reveal part of bar graph on click
- Highcharts -- Hide zero values without using 'null'
- HighCharts - Dynamically Change Axis Title Color
- how to dynamically change chart type in highstock stock chart?
- how to use different colour for some specific column in my high chart?
- Issues in Highchart-treemap with drilldown data label color change
- Changing tootip data on pie chart in highcharts
- highchart with a specific json format in django
- Highstock scroll bar-Single scroll bar for 4 charts
- Highcharts giving an extra legend when I get data dynamically from Highcharts
- Highcharts x-range series. How to crop label inside data?
- Highmaps country map not showing when using type: "mappoint"
- Multidimensional JSON to javascript array for highcharts
- Highcharts 24 hour clock
- ASP.NET MVC Angular 2 Failed to load resource: the server responded with a status of 404 (Not Found)
- HighCharts: automatic x-axis issue in presence of missing data values
- Highcharts / highstock how to change title of chart in IE?
- Highcharts polar spider with Min and Max for each y-axis
- Highcharts - advanced tooltip functionality needed
- How to click in a serie area chart below another serie area chart in HighCharts?
- Use exported data from Highcharts Editor in a new React chart
- Gantt Chart Variation with Chart JS or other libraries
- Highcharts custom tooltip positioner
- How to get xAxis and yAxis information on a Highcharts heatmap click event?
- Setting min and max for chart in Highcharts library error
- the datatime value displayed not correct on highchart
- Is it possible to change linecolor for timeline chart in between specific points?