I don't know the extent to which you'll need to stub it out, but you can embed a Ruby object that plays the part of the window in the context which you're evaluating highcharts.
context = V8::Context.new
context[:window] = Window.new
On Dec 26, 2012, at 9:10 PM, Karl Baum wrote:
Spent some time playing with highcharts from the rubyracer and it quickly became clear that i was in over my head. The main issue seems to be that highcharts depends on the browser window object. I came across this post about using node.js to export highcharts on the server:
Would it be possible to do the same within therubyracer?