Commit 6214c929 authored by olau@iola.dk's avatar olau@iola.dk

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
parent 865688a1
...@@ -1122,7 +1122,7 @@ ...@@ -1122,7 +1122,7 @@
function drawSeriesBars(series) { function drawSeriesBars(series) {
function plotBars(data, barWidth, offset, fill) { function plotBars(data, barWidth, offset, fill) {
if (data.length < 2) if (data.length < 1)
return; return;
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment