Fixed a nasty bug concerning negative values in line and barchart.