Issue #15 new

pycha crashes on empty data set

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 "pycha_tst.py", line 9, in <module> chart.render() File "/usr/lib/pymodules/python2.6/pycha/chart.py", line 97, in render self._update(options) File "/usr/lib/pymodules/python2.6/pycha/chart.py", line 142, in _update self._setColorscheme() File "/usr/lib/pymodules/python2.6/pycha/chart.py", line 130, in _setColorscheme self.colorScheme = colorSchemeClass(keys, **kwargs) File "/usr/lib/pymodules/python2.6/pycha/color.py", line 167, in init light = 1.0 / (len(keys) * 2) ZeroDivisionError: float division

Comments (0)

  1. Log in to comment