How to use achart engine in android

can you send a basic example of using the achart engine in android

+3
source share
3 answers

I know that more than a year has passed since the question was asked, but I would like to try to help anyone else who has the same question and find it like me.

I managed to get ChartDemo.java to several lines and it completely skips GeneratedChartDemo.java. The result only calls SensorValuesChart (). This is what interested me, but the call can be changed to any of the others, with the exception of hardcoded ones, which you would like to try.

package org.achartengine.chartdemo.demo;
import org.achartengine.chartdemo.demo.chart.SensorValuesChart;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;

public class ChartDemo extends ListActivity {
   @Override
   public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);    
      startActivity((new SensorValuesChart()).execute(this));
   }
}
+7
source

A link to this topic that explains more about using AChartEngine with intentions against direct submissions.

Android: I use the AChartEngine library for graphs, but cannot integrate Achartengine graphical representation using android xml?

0
source

Source: https://habr.com/ru/post/1794441/


All Articles