Android Question creating a bar chart

Mr Blue Sky

Active Member
Licensed User
Longtime User
Hi,

it's beyond my competence, if anyone can help me create a bar graph like this ?

bargraph.jpg
 
Last edited:

Mr Blue Sky

Active Member
Licensed User
Longtime User
I redid a little design , surely someone can do better. it does not look like the original but not far ;-)

fond.jpg
 

Attachments

  • bar_graph.zip
    73.4 KB · Views: 220
Upvote 0

Mr Blue Sky

Active Member
Licensed User
Longtime User
Screenshot_20180105-184021.png


good in the end it was in my skill, I managed to make my bar graph. Now I would like to make a library.
The data works but not the display of the bars.
can someone help me on panel management in a library

my first library (newbie)
B4X:
#Region  Project Attributes
    #ApplicationLabel: Digital_dashboard
    #VersionCode: 1
    #VersionName:
   #SupportedOrientations: landscape
    #CanInstallToExternalStorage: False
    #LibraryVersion: 1.0
#End Region

#Region  Activity Attributes
    #FullScreen: True
    #IncludeTitle: false
#End Region

Sub Process_Globals
  
End Sub

Sub Globals
    Private SeekBarRPM As SeekBar
    Private DIGIT As digital_dashboard
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("main")
    DIGIT.Initialize("",0)
    If FirstTime Then
        SeekBarRPM.Value = 1
        SeekBarRPM.Max = 40
    End If
End Sub

Sub SeekBarRPM_ValueChanged (Value As Int, UserChanged As Boolean)
    Log("SeekBarRPM_ValueChanged : "& Value)
    DIGIT.getDigital(Value)
End Sub
 
Last edited:
Upvote 0

Mr Blue Sky

Active Member
Licensed User
Longtime User
I would suggest you to make a CustumView for this.
Look at the CustomViews booklet, link in my signature.
in the designer now have in customview the panel dashboard, only have nothing inside. I read your CustomViews booklet and sorry i no understand all. you do not have a small example with a panel and an image view please
 
Upvote 0

Mr Blue Sky

Active Member
Licensed User
Longtime User
I remove all file because

The following error occurred
The uploaded file is too large.
Digital dashboard - Library.zip

thank you for taking time for me
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
You are trying to compile the Main module as a library.
This is impossible, the Main module is always excluded from a library compilation!
You can compile only other modules to a library.

Again make a CustomView.

Your code is complicated?
It could be simplified by using an array of ImageViews.

I sent you a private message.
 
Upvote 0
Top