Browse Source

Fix empty serie

pull/8/head
Florian Mounier 12 years ago
parent
commit
0a95a78c52
  1. 7
      demo/cabaret/static/js.js
  2. 2
      pygal/__init__.py

7
demo/cabaret/static/js.js

@ -19,8 +19,11 @@ function resend() {
} }
$('.data .controls').each(function () { $('.data .controls').each(function () {
var label = $(this).find('.serie-label').val(), var label = $(this).find('.serie-label').val(),
values = $(this).find('.serie-value').val(); values = $(this).find('.serie-value').val(),
vals.push([label, values.split(',').map(function (v) { return parseFloat(v); })]); lst = [label, values.split(',').map(function (v) { return parseFloat(v); })];
if (values != "") {
vals.push(lst);
}
}); });
var t = new Date().getTime(); var t = new Date().getTime();
$.ajax({ $.ajax({

2
pygal/__init__.py

@ -21,7 +21,7 @@ Pygal - A python svg graph plotting library
""" """
__version__ = '0.12.0' __version__ = '0.12.1'
import sys import sys
from pygal.config import Config from pygal.config import Config
from pygal.ghost import Ghost from pygal.ghost import Ghost

Loading…
Cancel
Save