@Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
            setHasOptionsMenu(true);
            View rootView = inflater.inflate(R.layout.fragment_combo_line_column_chart, container, false);

            chart = (ComboLineColumnChartView) rootView.findViewById(R.id.chart);
            chart.setOnValueTouchListener(new ValueTouchListener());

            generateValues();
            generateData();

            return rootView;
        }
A fragment containing a combo line/column chart view.
hellocharts-samples/src/lecho/lib/hellocharts/samples/ComboLineColumnChartActivity.java