Note that there are some explanatory texts on larger screens.

plurals
  1. POStuck in moving graph using achartEngine
    primarykey
    data
    text
    <p>Hi friends i have used graphs in my android application. In that i update graph in every second .Now i want to move this graph from right to left as it update the value.Any one have any idea how to do so? Any help appreciated.</p> <pre><code> dataset = new XYMultipleSeriesDataset(); renderer = new XYMultipleSeriesRenderer(); renderer.setChartTitleTextSize(12); renderer.setLabelsTextSize(15); renderer.setMarginsColor(Color.argb(0x00, 0x01, 0x01, 0x01)); renderer.setApplyBackgroundColor(true); renderer.setBackgroundColor(Color.TRANSPARENT); renderer.setZoomEnabled(false, false); renderer.setPointSize(5f); renderer.setShowGrid(true); renderer.setXTitle("Time"); renderer.setYTitle("Number"); rendererSeries = new XYSeriesRenderer(); rendererSeries.setColor(Color.BLUE); rendererSeries.setFillBelowLine(false); rendererSeries.setFillPoints(true); rendererSeries.setPointStyle(PointStyle.CIRCLE); renderer.addSeriesRenderer(rendererSeries); timeSeries = new TimeSeries("Random"); mThread = new Thread(){ public void run(){ while(true){ try { Thread.sleep(2000L); } catch (InterruptedException e) { e.printStackTrace(); } timeSeries.add(new Date(), random.nextInt(10)); mchartView.repaint(); } } }; mThread.start(); dataset.addSeries(timeSeries); mchartView = ChartFactory.getLineChartView(Pedometer.this, dataset, renderer); mchartView.refreshDrawableState(); mchartView.repaint(); llChart.addView(mchartView, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload