B4A Library [B4X] [XUI] Pie Chart

Discussion in 'Additional libraries, classes and official updates' started by Erel, Nov 6, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG] [​IMG] [​IMG]

    A simple, cross platform, pie chart class based on XUI library.

    Implemented as a custom view. Add it with the designer and set the data with:
    Dim data As List
    "Slice #1"2340)) '0 = random color
    data.Add(PieChart1.CreateSlice("Slice #2"500, xui.Color_Red))
    "Slice #3"200))
    "Slice #4"2000))
    A B4J project is attached. The class is inside.

    Attached Files:

    Last edited: Nov 26, 2017
  2. Erel

    Erel Administrator Staff Member Licensed User

    V1.01 uploaded. Fixes an issue when there is a single item.
  3. tufanv

    tufanv Expert Licensed User

    I am using jcharts for line chart , when I add this module to my b4j project , dim p as piechart use jcharts instead of xui. How can i fix this . ( jcharts also has a piechart , both of them are recıgnized as piechart.
  4. tufanv

    tufanv Expert Licensed User

    renaming the module fixes the problem
  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