score:0
the $.get function is out of place here. jquery $.get loads data from the server using a get request. instead you need a plain file read.
an example how you could do this.
// read the csv file
var data = fs.read('test.csv');
var svg = page.evaluate(function(opt, data) {
...
var lines = data.split('\n');
// iterate over the lines and add categories or series
$.each(lines, function(lineno, line) {
...
});
},evalarg, data);
Source: stackoverflow.com
Related Query
- Server side chart .svg export with Highcharts and PhantomJS, error loading data from .csv file
- Highcharts SVG Export from Python Server Side Code
- Highcharts server side export Pie With Data Labels (phantomjs)
- Server-side c# and client side javascript with json loading Highcharts gantt chart Task Progress Indicator, need to change Tooltip and Label name
- Error with PhantomJS when installing Highcharts export server on Azure VM (Ubuntu 20.04)
- Exporting Charts on server side with Highcharts and PhantomJS to make a custom PDF
- JavaScript - Export Div with SVG chart + HTML as and Image
- Highcharts export chart exportSettings with svg file
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Global configuration with common code and unique data & Headings
- Issues using highcharts node export server from ClojureScript - "0x03 error when performing chart generation"
- Highcharts - bubble chart with titles at x- and y-Axis - Error #14
- highcharts Scatter Chart not loading with LOTS of data
- Highcharts - selection error with live data and different time intervals
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- PIE CHART - Data Visualization With DataTables and Highcharts
- Highcharts to display area range and line chart with data from a CSV file
- Highcharts AreaRange Chart issues with xAxis and last data point label
- Highcharts cloud issue with data source when duplicating chart
- how to make chart real time with 2 line and get data from php with highcharts
- Is it possible to export HTML along with SVG markup to the Highcharts Export Server (http://export.highcharts.com/)
- Json to Chart using highchart export server with Node js module its throw error
- Highcharts bar chart with negative and positive data
- inconsistent SVG elements from Highcharts making tests fail with Geb/Selenium and PhantomJS
- Reload chart data via JSON with Highcharts
- Export Highcharts to PDF (using javascript and local server - no internet connection)
- Highcharts data series issue with ajax/json and PHP
- Highcharts / jQuery - destroy and rebuild chart with original options
- I can't make Highcharts phantomJs export server work
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
More Query from same tag
- How to add text when exporting a chart in highcharts?
- Highcharts yAxis title click
- Removing and re-adding series while keeping the same markers
- How do I initialize HighChart series values with AJAX?
- highcharts y-axis title wrap
- Want to avoid spacing between each stacked bars in highcharts?
- Highcharts custom colours
- Highcharts nearest point tooltip not show due to undefined series
- highcharts scatter with 4 quadrants
- in HighChart the X axis 0(zero) geting up in the middle of the chart when there is no record or all the records are zero
- Highcharts Categories Bug?
- Highcharts two series, each is stacked area
- Highcharts - Exporting gantt charts not showing previous interaction by user
- how to load JSON for this highchart - django app
- jquery flip! component: highchart is no longer interactive?
- Additional Chart in Tooltip possible?
- Highstock vs Google Charts in Performance
- Highcharts Line Chart, display series name at the end of line series
- Hide popup when onclick of map where no features
- Why is my addPoint() not recognized as a function in my highcharts code?
- Highcharts : Two marker symbol for the same point
- How to create PIE chart with slice inside outer circle
- How to add specific values to highchart
- Highcharts Percentage area graph splined?
- highcharts export png files
- How do I get json output from a date value from mongodb using pymongo
- Invert Y axis in Highcharts
- Highcharts multiple rowsUrl in same charts
- Shared events highcharts
- Grid line view as background in Highchartjs?