Ola
This lib is a wrap of this github
The chart framework that has been adopted has been Chart.JS and one can easily create a chart with 1 line of code, as simple as..
The UOEChartKick.zip file is the library source code, open the project file with B4J, run it and then compile as library.
The UOEChartKickDemo is the demo as explained in this thread.
This is my first abstract designer based library for BANano, so to use the charts, one needs to use the abstract designer.
1. Open Internal Designer
2. Click on Add View > Custom View > UOEChart
3. Update the properties of the chart
4. Generate members
5. Add the map data and Refresh the chart.
In this example I have created different charts and these are displayed one after another as I am not using a grid in this example and have not set the top/bottom variables.
Line Chart
Bar Chart
This lib is a wrap of this github
The chart framework that has been adopted has been Chart.JS and one can easily create a chart with 1 line of code, as simple as..
B4X:
'load the layout to the page
BANano.LoadLayout("#body","vCharts")
'line chart
UOEChart1.AddXYMap(CreateMap("2017-01-01": 11, "2017-01-02": 6)).Refresh
The UOEChartKick.zip file is the library source code, open the project file with B4J, run it and then compile as library.
The UOEChartKickDemo is the demo as explained in this thread.
This is my first abstract designer based library for BANano, so to use the charts, one needs to use the abstract designer.
1. Open Internal Designer
2. Click on Add View > Custom View > UOEChart
3. Update the properties of the chart
4. Generate members
5. Add the map data and Refresh the chart.
In this example I have created different charts and these are displayed one after another as I am not using a grid in this example and have not set the top/bottom variables.
Line Chart
B4X:
'line
UOEChart1.AddXYMap(CreateMap("2017-01-01": 11, "2017-01-02": 6)).Refresh
Bar Chart
B4X:
'bar chart
UOEChart2.AddXYMap(CreateMap("Work": 32, "Play": 1492)).Refresh
Attachments
Last edited: