B4J Question Charts line chart

giggetto71

Active Member
Licensed User
Longtime User
Hi guys,
quick question. I am using the Charts.bas (version I have is 1.04) module to draw a line type chart. Is it possible to NOT showing the x axis labels ? in my case they are timestamps including year, month, day and time so they appear huge in the graph and i would like to find a way to draw the line without shoing the x labels.
Is there a way?
thanks!!
 

klaus

Expert
Licensed User
Longtime User
It would have more efficient if you had given more details and the code you are using.
I suppose that you are speaking of the Android Charts Framework class.
You use the lines chart and you add the line points with something like this:
Charts.AddLineMultiplePoints(LD, i, Array As Float(Val1, Val2), i Mod 90 = 0)
Set False as the last parameter, this will remove all X axis ticks.
Charts.AddLineMultiplePoints(LD, i, Array As Float(Val1, Val2), False)

Note that there exist the B4X xChart library, which is cross-platform.
 
Upvote 0

giggetto71

Active Member
Licensed User
Longtime User
@klaus .
Apologize...you are completely right...but this quarantine is driving us all nuts....at leat me...only good thing...one have more time to code...
Of course your tip worked just great...so THANKS!!!!
 
Upvote 0
Top