Android Question XUI-Pie Chart problem in B4A

dragonguy

Active Member
Licensed User
i use this library to create a pie charts, everything seem ok with multi item. When i left one item, pie charts didn't show up. i attach the testing project.
please test for me, is it same problem with me.

B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Private PieChart1 As PieChart
    Private xui As XUI

End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("MAIN")
    Dim data As List
    data.Initialize
'    data.Add(PieChart1.CreateSlice("Slice #1", 234, 0)) '0 = random color
    data.Add(PieChart1.CreateSlice("Slice #2", 500, xui.Color_Red))
'    data.Add(PieChart1.CreateSlice("Slice #3", 20, 0))
'    data.Add(PieChart1.CreateSlice("Slice #4", 200, 0))
    PieChart1.SetData(data)

End Sub
 

Attachments

  • test_piecharts.zip
    9 KB · Views: 177
Top