Add getDataWithinXDomain function to pie chart.