From 6214c9298b8b531221a6c2e5ed793bd90f4d9a3f Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Wed, 27 Feb 2008 13:36:36 +0000 Subject: [PATCH] Fixed bug in handling bar series with only one item git-svn-id: https://flot.googlecode.com/svn/trunk@46 1e0a6537-2640-0410-bfb7-f154510ff394 --- jquery.flot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flot.js b/jquery.flot.js index b468532..482d094 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1122,7 +1122,7 @@ function drawSeriesBars(series) { function plotBars(data, barWidth, offset, fill) { - if (data.length < 2) + if (data.length < 1) return; for (var i = 0; i < data.length; i++) {