fixed wrong x-axis length calculation for datasets with negative forecast data, made x-ticks calculation more robust, fixed bug in pieChart class that made last color the same as the first one