A reminder to myself » Javascript http://simionbaws.ro Stuff I might need later. Mon, 06 Jul 2015 13:25:52 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.1 jqPlot resize bar charts http://simionbaws.ro/programming/jqplot-resize-bar-charts/ http://simionbaws.ro/programming/jqplot-resize-bar-charts/#comments Fri, 28 Feb 2014 11:39:26 +0000 http://simionbaws.ro/?p=195 To make a jqPlot bar chart resizeable, you need to do this:

$(window).on('resize', function () {
    $.each(chart.series, function(index, series) { 
        series.barWidth = undefined; 
    }); 
});

where “chart” is the object returned by $.plot when initializing the plot.

Google+
]]>
http://simionbaws.ro/programming/jqplot-resize-bar-charts/feed/ 0