score:1
Okay, I got it working.
First adding allowCodeExecution
helped.
But then once I started debugging the highcharts-export-server
code in node, I found that there was an exception being thrown by phantomjs when evaluating (by way of injectJs
) within highcharts-regression.js
.
That module uses for (let i=...
. Turns out the let
keyword is not supported by phantomjs. This was only used on one line in the whole module, so I created a local copy and edited it to for (var i=...
and that fixed that problem.
Now I'm getting my trend line.
But then I also have a "sma" series on the same chart. So I had to edit the node_modules/highcharts-export-server/build.js
file and add stock/{{version}}/indicators/indicators.js
as a cdnAdditional
entry.
If you google how to add extra highcharts modules you will find details on how to do this -- on their forum. Basically you edit build.js
then run node build.js
from the root of where you have the highcharts-export-server
installed by npm (or where you cloned it).
Note that the resources.files
property wants a string of well formed JSON. It needs to be a comma separated list of filesystem paths or URIs (that start with http). This property does not want an array of strings. Just a singe string.
Source: stackoverflow.com
Related Query
- Json to Chart using highchart export server with Node js module its throw error
- Issues using highcharts node export server from ClojureScript - "0x03 error when performing chart generation"
- Overriding log scale with highcharts export server
- Highcharts SVG Export from Python Server Side Code
- Highcharts server side export Pie With Data Labels (phantomjs)
- highcharts-export-server with highcharts-regression plugin in a node module throws an error
- Is it possible to export HTML along with SVG markup to the Highcharts Export Server (http://export.highcharts.com/)
- How to add flags to highcharts export server when started as a module
- Error with PhantomJS when installing Highcharts export server on Azure VM (Ubuntu 20.04)
- Highcharts 9.1.1 export from fullscreen with print option- throw error on browser console Uncaught TypeError: a.hasAttribute is not a function
- Server side chart .svg export with Highcharts and PhantomJS, error loading data from .csv file
- Export Highcharts to PDF (using javascript and local server - no internet connection)
- How to export the whole page or html content with Highcharts not just the chart?
- I can't make Highcharts phantomJs export server work
- Highcharts export chart exportSettings with svg file
- ASP.NET WebRequest to Highcharts export server
- Highcharts phantomjs export server can't parse json string
- 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
- How to export CSV and XLS with external button in Highcharts
- Highcharts export charts as image on serverside with php
- Highcharts async Server Loading with multiple series
- HIghcharts export server hosting ph-batik
- Highcharts Export Server on AWS Lambda
- Loading 'theme' and 'exporting' module with Highcharts using Requirejs
- highcharts export server js script error codes
- Highcharts export with custom HTML graph
- HighCharts Export Server not creating image
- Highcharts - how to export chart with different scale in one click
- How to update the highcharts.js to make the export server to my own ipaddress,instead of connect to the highcharts server?
More Query from same tag
- Javascript charting plugin which allows to select a portion of an area graph
- Load Highchart animation on scroll
- Highcharts align plot points to start at y-axis
- How to space columns in HighCharts
- Highmaps - Printing resizes the map on Chrome
- How to make a setCategory while using Grouped category plugin in highchart?
- FillColor on Highcharts working differently
- Pie-donut using .csv
- Highcharts setExtremes blanking the graph
- Resizing Highcharts data when creating Graph when over 100
- Dual Axes Column Chart scaling issue for column chart
- Highcharts - Space between bars based on the bars' width
- Highcharts: Change hover style in line chart when hovering over legend
- Colorize yAxis labels and chart lines in HighchartTable
- How to show alone points, with {marker: {enabled: false}}?
- HighCharts - increase bar height and reduce bar gap
- Highcharts Export Chart To PDF on The Fly Using TCPDF
- Date Labels on X Axis Not Showing For Each Column
- Realtime monitoring node.js server
- how to divide two columns on series with json in highchart
- How to render Xaxes with time in hours, days, ... from 0 to infinity
- Highcharts display alternate x axis
- Highcharts - TickInterval with datetime values
- How to have first level as column chart and second level as Fixed placement columns in drill down highcharts
- Rendering Highcharts Chart in Two Container
- Highchart (basic line chart) which can have multiple values vs x axis?
- Concatenate data variables in Highchart Series
- The graph is not equal on the basis of the addition code in Highcharts
- Highcarts function not being recognized
- Highcharts add a legend for marker colors