Ruff and not clean implement of pie chart