michelson / lazy_high_charts

Make highcharts a la ruby , works in rails 5.X / 4.X / 3.X, and other ruby web frameworks

Home Page:http://www.suipit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exporting::width not working

tonyvince opened this issue · comments

I tried to set width of the exporting module as shown in this fiddele.

    LazyHighCharts::HighChart.new('graph') do |f|
      f.title(text: "Rank of <i>@student</i> for last 10 tests")

      f.series(name: "Rank", data: y_axis_data, type: 'line')
      f.yAxis [
        {title: {text: "Rank in hundreds", margin: 30} },
      ]
      
      f.xAxis [
        {title: {text: "Date", margin: 10}, categories: x_axis_data}
      ]
      f.exporting(width: 800)
      f.legend(align: 'right', verticalAlign: 'top', y: 75, x: -50, layout: 'vertical')
      f.chart({defaultSeriesType: "column"})
    end

but there is no change in width for the downloaded png image.