Android graphview not automatically updating
<p>I am using the GraphView Library and I cant get the graph to redraw itself when I update the series (or replace the series with a new one). It only seems to redraw itself when I touch the screen. Here is my update function.</p>

<pre><code>private void updateGraph(Animal a)
{
    Toast.makeText(getApplicationContext(), "Updating Graph", Toast.LENGTH_SHORT).show();
    GraphViewData[] newData = new GraphViewData[2];
    newData[0] = new GraphViewData(0,a.getAvg());
    newData[1] = new GraphViewData(1,0.2);

    GraphViewSeries newSeries = new GraphViewSeries(a.getName(),dStyle,newData);

    graph.removeSeries(exampleSeries);
    graph.addSeries(newSeries);
    //update horizontal value
    //graph.setHorizontalLabels(new String[]{a.getName()});
}
</code></pre>
