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

Problem with adding the scrolbar for heatmap

ilisun opened this issue · comments

HI,
i have to add a scrollbar does not work for the heatmap.
controller code is:

LazyHighCharts::HighChart.new('heatmap') do |f|
  f.xAxis(categories: x_data, scrollbar: { enabled: true })
  f.yAxis(categories: times, title: false, scrollbar: { enabled: true })
  f.colorAxis(minColor: '#FFFFFF', maxColor: '#004cab', min: 0, max: 100)
  f.legend(enabled: false)
  f.chart(type: 'heatmap', marginTop: 40, width: 1000, marginBottom: 60, plotBorderWidth: 1)
  f.series(borderWidth: 1, data: data, dataLabels: { enabled: true, color: '#000000' })
end

here stackoverflow also described this problem, without solutions.
What i am doing wrong or this option is not available for this gem?