Skip to content
Erich Seifert edited this page Mar 14, 2016 · 1 revision

How can I create empty sections in a pie plot?

In order to create an empty section in a pie simply use a negative value:

DataTable data = new DataTable(Integer.class);
data.add(5);
data.add(10);
// This is an empty section of size 3
data.add(-3);

PiePlot plot = new PiePlot(data);