node.js - How do I preload or install static files into Highchart's export server? -


this if export chart using html, can reference styling classes , chart generate on web application.

currently tried storing css in resources.json file however, styling not seem applying of charts.

i know in line styling tags apply chart when use in html however, since have lot of styling preferable load on once using resources.json

update

the command d_paul provided works, , thank that!

i trying load resources enableserver command wouldn't read it.

is there anyway send in resources argument through exporting api http://api.highcharts.com/highcharts/exporting

i know can send json server resources argument , have render way, wondering if there way send through exporting api linked above.

or if not through api, if can load resources when start server using enableserver argument?

i have created simple resources.json file in node-export-server folder looks this:

{     "css": ".highcharts-background {fill: #bada55;}" } 

generated image command:

highcharts-export-server -infile chartoptions.json -outfile chart.png

and css style applied without problems. tested on newest version of node export server (https://github.com/highcharts/node-export-server).


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -