Android Question Graph ?

Discussion in 'Android Questions' started by kuosda, Jun 1, 2015.

  1. kuosda

    kuosda Active Member Licensed User

    Graph can not be Initialize
     

    Attached Files:

  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Hello,
    You should change
    Code:
    g.Initialize("")
    to
    Code:
    g.Initialize("My Graph")
     
  3. kuosda

    kuosda Active Member Licensed User

    The same result
    This B4AGraphView.jar problem
     

    Attached Files:

  4. walterf25

    walterf25 Well-Known Member Licensed User

    HI, did you copy the three files in your additional library folder?

    Walter
     
    Peter Simpson likes this.
  5. kuosda

    kuosda Active Member Licensed User

    This would have added to the list
     

    Attached Files:

  6. Peter Simpson

    Peter Simpson Expert Licensed User

    Your original post said Graph and not B4AGraphView...
     
  7. walterf25

    walterf25 Well-Known Member Licensed User

    Try changing your android.jar file to a higher version, maybe 21.

    Thanks,
    Walter
     
    Peter Simpson likes this.
  8. kuosda

    kuosda Active Member Licensed User

    Is it?
     

    Attached Files:

  9. walterf25

    walterf25 Well-Known Member Licensed User

    no, i'm talking about the android platform version needs to be 21 or higher.

    look at the image attached.
     

    Attached Files:

    Peter Simpson likes this.
  10. kuosda

    kuosda Active Member Licensed User

    Not work!
    A similar jar substitute it?
     

    Attached Files:

  11. walterf25

    walterf25 Well-Known Member Licensed User

    I'm not sure what's going on, i know the library works as it should. The last thing would be for you to zip your entire project and post it so that i can take a look at what exactly is going on.

    Walter
     
  12. kuosda

    kuosda Active Member Licensed User

    You're not wrong it is the only way
    Even Initialize not work
    GraphView_001.zip → GraphView.zip.001
    GraphView_002.zip → GraphView.zip.002
     

    Attached Files:

  13. walterf25

    walterf25 Well-Known Member Licensed User

    There is something wrong with your zip files, they seem to be corrupted, can you zip them again and upload them, for some reason they download but after extracting them the folders disappear.
     
  14. kuosda

    kuosda Active Member Licensed User

    Thanks!
     

    Attached Files:

  15. walterf25

    walterf25 Well-Known Member Licensed User

    Ok, so two things!

    First of all, you are missing one parameter in your Initialization line.
    you have this:
    Code:
    Dim g As graph
    Dim l As LineSeries
    g.Initialize(
    "My Graph")
    The initialization requires two parameters, the EventName and a boolean indicating whether you are using dates or not. It should be like this:
    Code:
    Dim g As graph
    Dim l As LineSeries
    g.Initialize(
    "My Graph"false)
    And the second thing is that you need to have the AppCompat library selected as well, if you don't have it please download it from here. http://www.b4x.com/android/forum/attachments/appcompat_v1_10-zip.30896/
    All this is specified in my first post here, it is in big bold blue letters. http://www.b4x.com/android/forum/threads/graphview-library.34995/

    Hope this resolves your issues.
     
  16. kuosda

    kuosda Active Member Licensed User

    Attached Files:

  17. kuosda

    kuosda Active Member Licensed User

    Basically you can use them, but I have a problem
    Amplitude PP (Y axis) can not set minimum and maximum spacing
    If ID:walterf25 see it. can you help me answer it
     

    Attached Files:

    Peter Simpson likes this.
  18. walterf25

    walterf25 Well-Known Member Licensed User

    The Y axis are scaled automatically, i don't think the original library allows us to manually change the scale.

    Walter
     
  19. kuosda

    kuosda Active Member Licensed User

    If the x-axis is datetime will result y-axis range sometime big or small
    , I tried Eclipse reversal translation but failed worship, Can you please help me add y axis maximum and minimum settings or source code to me and my own modify
    I'm very much obliged to you
     
  20. walterf25

    walterf25 Well-Known Member Licensed User

    Can you post an image so I can see what you're talking about?

    Thanks,
    Walter
     
    thedesolatesoul likes this.
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