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.