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 Articles
- 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?
- Highcharts bar format datalabels to percent and add text
- how to set underline style on subtitle highchart?
- HighCharts doesnt get data from Flask endpoint
- Integrating Highcharts into Weebly
- Highchart background based on percentage
- Highcharts dynamic set category update the chart but shows only points but not lines
- Highchart not rendering inside a ajax function angularjs
- JQuery Highcharts - dates being picked up in US format not UK
- HighChart Legends Overcome on charts
- compare chart series array with new array to determine adds/removes
- Manipulating array to add through setData on highcharts
- Highcharts: how to optimize auto-scaling so that columns make better use of the available height
- Highcharts Gauge styling and adding CSS elements
- highcharts scroll through axis
- HighCharts & MVC: How to load whole graph definition and data with JSON?
- Is it possible to configure the size of top level in Sunburst chart similar to the innerSize in Pie chart?
- bubble chart with highstock
- Highcharts change symbol and hover text of individual points Line Chart
- how to add an color picker control to highchart for changing the color of series by user
- Highcharts IE8 - Error on page