private PieChartData generatePieChartData() {
            int numValues = 6;

            List<SliceValue> values = new ArrayList<SliceValue>();
            for (int i = 0; i < numValues; ++i) {
                values.add(new SliceValue((float) Math.random() * 30 + 15, ChartUtils.pickColor()));
            }

            PieChartData data = new PieChartData(values);
            return data;
        }
Note: Chart is within ViewPager so enable container scroll mode. *
hellocharts-samples/src/lecho/lib/hellocharts/samples/ViewPagerChartsActivity.java