I am trying to use the highcharts node export server as a module (see https://github.com/highcharts/node-expo ... ejs-module), not as a server, i.e. like the example code given in the above section of the docs.
But I also want to do some custom stuff, to generate the options for the chart, to override certain core functions of Highcharts, and also to manipulate the chart after it is first generated (e.g. to move stuff around or add other custom elements).
I think that I should be able to use callback, resources and customCode to achieve this, but I can't seem to get these to work... whatever I try I get errors. And yes I have set allowCodeExecution to 1 in the exportSettings object passed to exporter.export().
I note that it is also possible to pass a custom worker script to exporter.initPool()... in that case I guess we can start with copy/pasting the default worker (https://github.com/highcharts/node-expo ... /worker.js) and modify it for our needs?
Is there a very simple working example of using these customisations (callback, resources customCode and worker ) with the export server as a node module?