Responsive sizing with lazy_high_charts gem?

339 Views Asked by At

It is possible for highcharts to perform responsively, as seen in this fiddle.

It seems that lazy_high_charts defaults to width: 600px; height: 400px; when no width or height is supplied. Is there a workaround?

1

There are 1 best solutions below

0
Michelson On

set height only will do the trick

LazyHighCharts::HighChart.new('graph', :style=>"height:260px")

if you preferer you can set width with percentages