michelson/lazy_high_charts — Issue #50: Highcharts exporting module isn't added in your gem
Author: jeffself
Created: 2012-03-06 16:14:23+00:00
State: open

I was trying to get the exporting module working so my charts could print or be saved as png, jpeg, svg or pdf. But I noticed your highcharts generator only added the highcharts.js file and not the exporting.js from the modules folder in the Highcharts code. I manually added this to app/assets/javascripts/application.js:
//= require modules/exporting

The buttons now show up on my chart but I'm unable to change the name of a exported chart using the following syntax:

controller
-------------
@chart = LazyHighCharts::HighChart.new('graph') do |f|
f.chart({ :renderTo => "chart1", :defaultSeriesType => 'spline' })
...
f.exporting({ :filename => 'my_custom_chart_name' })
end

Any ideas or recommendations on how to specify a custom filename for export?