Android Question Graph ?

kuosda

Active Member
Licensed User
Longtime User
Graph can not be Initialize
 

Attachments

  • GraphError.jpg
    GraphError.jpg
    158.2 KB · Views: 148

kuosda

Active Member
Licensed User
Longtime User
The same result
This B4AGraphView.jar problem
 

Attachments

  • GraphError2.jpg
    GraphError2.jpg
    297.3 KB · Views: 142
Upvote 0

walterf25

Expert
Licensed User
Longtime User
The same result
This B4AGraphView.jar problem
HI, did you copy the three files in your additional library folder?

Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
This would have added to the list
Try changing your android.jar file to a higher version, maybe 21.

Thanks,
Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User

Attachments

  • platform version.jpg
    platform version.jpg
    118.6 KB · Views: 120
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Not work!
A similar jar substitute it?
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
 
Upvote 0

kuosda

Active Member
Licensed User
Longtime 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
 

Attachments

  • GraphView_001.zip
    293 KB · Views: 120
  • GraphView_002.zip
    289.4 KB · Views: 120
Upvote 0

walterf25

Expert
Licensed User
Longtime 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
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.
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Ok, so two things!

First of all, you are missing one parameter in your Initialization line.
you have this:
B4X:
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:
B4X:
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. https://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. https://www.b4x.com/android/forum/threads/graphview-library.34995/

Hope this resolves your issues.
 
Upvote 0

kuosda

Active Member
Licensed User
Longtime User

Attachments

  • Graph0k1.jpg
    Graph0k1.jpg
    236.9 KB · Views: 124
  • Graph0k1.jpg
    Graph0k1.jpg
    236.9 KB · Views: 233
  • Graph1.jpg
    Graph1.jpg
    145.3 KB · Views: 245
Upvote 0

kuosda

Active Member
Licensed User
Longtime 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
 

Attachments

  • Graph.jpg
    Graph.jpg
    131 KB · Views: 127
Upvote 0

walterf25

Expert
Licensed User
Longtime 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
The Y axis are scaled automatically, i don't think the original library allows us to manually change the scale.

Walter
 
Upvote 0

kuosda

Active Member
Licensed User
Longtime 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
 
Upvote 0

walterf25

Expert
Licensed User
Longtime 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
Can you post an image so I can see what you're talking about?

Thanks,
Walter
 
Upvote 0
Top