javascript - Highcharts - init with different vertical/horizontal config based on browser width, also after resize -
our responsive web app needs adjust charts rendered vertical configuration when windows size is, or resized as, narrow. wider screen sizes charts rendered horizontal configuration.
what best way achieve this?
one way first load chart config conditionally based on $(window).width() value. define redraw function , reinit chart different config if window width has changed past break point.
Comments
Post a Comment