Issue #388: pie charts backend