1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Using data from xChart database

Discussion in 'Android Questions' started by Itila Tumer, Apr 22, 2019.

  1. Itila Tumer

    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.
     

    Attached Files:

    Last edited: Apr 22, 2019
  2. klaus

    klaus Expert 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.
     

    Attached Files:

    AnandGupta, Erel and DonManfred like this.
  3. Itila Tumer

    Itila Tumer Active Member Licensed User





    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: Apr 25, 2019
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice