pycha crashes on empty data set

Issue #15 new
Vicente Ruiz Rodríguez
created an issue

If you use an empty data set and you try to plot it, pycha crashes it. I attached an example. Trace:

Traceback (most recent call last): File "", line 9, in <module> chart.render() File "/usr/lib/pymodules/python2.6/pycha/", line 97, in render self._update(options) File "/usr/lib/pymodules/python2.6/pycha/", line 142, in _update self._setColorscheme() File "/usr/lib/pymodules/python2.6/pycha/", line 130, in _setColorscheme self.colorScheme = colorSchemeClass(keys, **kwargs) File "/usr/lib/pymodules/python2.6/pycha/", line 167, in init light = 1.0 / (len(keys) * 2) ZeroDivisionError: float division

Comments (0)

  1. Log in to comment