Android Question Using data from xChart database

Itila Tumer

Active Member
Licensed User
Hello there,

I developed a small application.
I have columns in the ID Data TestAdi names in my database.

I'm bringing IDs to Spinner.
I got the values from the DATA column according to the selected ID.
I shred the data I got and transferred it to the list.

As I learned, the X axis takes time.
The Y-axis values take Direction = Rnd (0, 500).
I want to send the values of the Y axis with the list I received from my database.

@klaus waiting for your help.
 

Attachments

Last edited:

klaus

Expert
Licensed User
@klaus waiting for your help.
I was waiting for your answers in this thead How do I draw graphics?
I asked you there several questions, you have never answered, why!?

I looked at your project.
And again have the same questions:
What exactly do you want to do?
What kind of data are in the array you get when selecting in the Spinner.
Are these Y values?
If yes, do you want to display these data on a chart?
What are the X values?
You use a timer for a dynamic chart, do you really want or need it?

I tryed to guess some answers and changed your project.
But I am very frustrated, trying to help whithout knowing if this is what you expect.

As I learned, the X axis takes time.
No, the X values are Strings.
In xChart1.AddLineMultiplePoints(i, Array As Double(lstData.Get(i)), True)
If you set True as the last parameter, the X Value is displayed.
 

Attachments

Itila Tumer

Active Member
Licensed User
I was waiting for your answers in this thead How do I draw graphics?
I asked you there several questions, you have never answered, why!?

I looked at your project.
And again have the same questions:
What exactly do you want to do?
What kind of data are in the array you get when selecting in the Spinner.
Are these Y values?
If yes, do you want to display these data on a chart?
What are the X values?
You use a timer for a dynamic chart, do you really want or need it?

I tryed to guess some answers and changed your project.
But I am very frustrated, trying to help whithout knowing if this is what you expect.


No, the X values are Strings.
In xChart1.AddLineMultiplePoints(i, Array As Double(lstData.Get(i)), True)
If you set True as the last parameter, the X Value is displayed.




sorry. my fault.

You did something very close to my project requests.

let me answer your questions.

What kind of data are in the array you get when selecting in the Spinner. --> double type data
Are these Y values?---> Yes
If yes, do you want to display these data on a chart?---> Yes
What are the X values? --->The x value is the timer.
You use a timer for a dynamic chart, do you really want or need it?--->Yes, I want it and I need it. ı will print a per second yield

@klaus
 
Last edited:
Top