plotting API: Implement the option to plot only discrete values and add the option to plot Pie charts