I am trying to use Android Plot to display graphs in Android Activity, how can I display my data in the graph?

StackOverflow https://stackoverflow.com/questions/5991774

  •  13-11-2019
  •  | 
  •  

Вопрос

I am trying to use Android Plot to display graphs in Android Activity, how can I display my data and label x and y axis in the graph?
I would like to display Months on the X-Axis and Expenses in Y-Axis, and I would like to fetch data from database for the particular category like Food, Personal Expenses etc.. and fetch the graph according to the data.

Please refer the below website code .

http://androidplot.com/wiki/Quickstart

How can I pass List data which is fetched from database(SQLite) to the variables?

Number[] series1Numbers = {1, 8, 5, 2, 7, 4};
Number[] series2Numbers = {4, 6, 3, 8, 2, 10};
Это было полезно?

Решение

fetch the data and store in an Int[] and then pass this int array wherever you are using series1Numbers and series2Numbers because the Number class is nothing but an int array.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top