add option to prevent overly large piecharts