I´m trying to export a chart server side using phantomJs. After googling around for articles and examples of this using rails I found this api:
https://github.com/kbaum/highchart-image-api
which can be pretty much summed up by saying that is using phantomjs and highcharts-convert.js...and calling some rails code on the server.
Now, the problem relies on the beginning. After including all the resources in the latest link an Uncaught ReferenceError: require is not defined
error comes up on line 36 of highcharts-convert.js and I can't seem to get out of this mess.
help?
PS: I added phantomjs with this gem
brew
:gem install brew
,brew install phantomjs
– Paweł Fus