diff --git a/demo/cabaret/static/js.js b/demo/cabaret/static/js.js index 8201537..41d7b41 100644 --- a/demo/cabaret/static/js.js +++ b/demo/cabaret/static/js.js @@ -19,8 +19,11 @@ function resend() { } $('.data .controls').each(function () { var label = $(this).find('.serie-label').val(), - values = $(this).find('.serie-value').val(); - vals.push([label, values.split(',').map(function (v) { return parseFloat(v); })]); + values = $(this).find('.serie-value').val(), + lst = [label, values.split(',').map(function (v) { return parseFloat(v); })]; + if (values != "") { + vals.push(lst); + } }); var t = new Date().getTime(); $.ajax({ diff --git a/pygal/__init__.py b/pygal/__init__.py index c0eab56..b186008 100644 --- a/pygal/__init__.py +++ b/pygal/__init__.py @@ -21,7 +21,7 @@ Pygal - A python svg graph plotting library """ -__version__ = '0.12.0' +__version__ = '0.12.1' import sys from pygal.config import Config from pygal.ghost import Ghost