Consultation about draw graph on android
<p>i got this code for drawing a graph</p>

<pre><code>public class FuelChart {

    private static final String DATE_FORMAT = "dd/MM/yyyy";

    public GraphicalView getView(Context context, List&lt;Result&gt; results) {
        String title = "5555555";

        int[] colors = new int[] { Color.GREEN };
        PointStyle[] styles = new PointStyle[] { PointStyle.POINT};
        XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);

        Result max = Collections.max(results);
        Result min = Collections.min(results);

        setChartSettings(renderer, "dddd",
                "3333",
                "44444", results.get(0)
                        .getDate().getTime(), results.get(results.size() - 1)
                        .getDate().getTime(), min.getValue(), max.getValue(), Color.GRAY, Color.LTGRAY);
        renderer.setXLabels(5);//5
        renderer.setYLabels(10);//10
        SimpleSeriesRenderer seriesRenderer = renderer.getSeriesRendererAt(0);
        seriesRenderer.setDisplayChartValues(true);

        return ChartFactory.getTimeChartView(context,
                buildDateDataset(title, results), renderer, DATE_FORMAT);
    }

    protected void setChartSettings(XYMultipleSeriesRenderer renderer,
            String title, String xTitle, String yTitle, double xMin,
            double xMax, double yMin, double yMax, int axesColor,
            int labelsColor) {
        renderer.setChartTitle(title);
        renderer.setXTitle(xTitle);
        renderer.setYTitle(yTitle);
        renderer.setXAxisMin(xMin);
        renderer.setXAxisMax(xMax);
        renderer.setYAxisMin(yMin);
        renderer.setYAxisMax(yMax);
        renderer.setAxesColor(axesColor);
        renderer.setLabelsColor(labelsColor);
    }

    protected XYMultipleSeriesRenderer buildRenderer(int[] colors,
            PointStyle[] styles) {
        XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
        setRendererProperties(renderer, colors, styles);
        return renderer;
    }

    protected XYMultipleSeriesDataset buildDateDataset(String title,
            List&lt;Result&gt; results) {
        XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
        TimeSeries series = new TimeSeries(title);
        for (Result result : results) {
            series.add(result.getDate(), result.getValue());
        }
        dataset.addSeries(series);
        return dataset;
    }

    protected void setRendererProperties(XYMultipleSeriesRenderer renderer, int[] colors,
            PointStyle[] styles) {
        renderer.setAxisTitleTextSize(16);
        renderer.setChartTitleTextSize(20);
        renderer.setLabelsTextSize(15);
        renderer.setLegendTextSize(15);
        renderer.setPointSize(5f);//5
        renderer.setMargins(new int[] { 20, 30, 15, 20 });
        int length = colors.length;
        for (int i = 0; i &lt; length; i++) {
            XYSeriesRenderer r = new XYSeriesRenderer();
            r.setColor(colors[i]);
            r.setPointStyle(styles[i]);
            renderer.addSeriesRenderer(r);
        }
    }


public class GraphTestActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FuelChart chart = new FuelChart();
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(chart.getView(this, getResults()));
    }
    private List&lt;Result&gt; getResults() {
                List&lt;Result&gt; results = new ArrayList&lt;Result&gt;();
                results.add(new Result(new Date(108, 9, 1), 18.8));
                results.add(new Result(new Date(108, 9, 8), 19.0));
                results.add(new Result(new Date(108, 9, 15), 10.0));
                results.add(new Result(new Date(108, 9, 22), 19.5));
                results.add(new Result(new Date(108, 9, 22), 39.5));
                results.add(new Result(new Date(108, 9, 22), 49.5));
                results.add(new Result(new Date(108, 9, 22), 19.5));
                return results;
            }
</code></pre>

<p>this sample draw only one graph, how i can draw more than one ?  what i need to add to this code ?</p>

<p>thanks in advance</p>
