Hi,
I am able to display FrappeChart on a page, but not able to display it on a container.
If I add FrappeChart on a Container then the chart is not displayed, instead the following text is displayed in the cell
var _MyContainer-frappechart2;
Am I missing any thing ?
Here is the code used.
Another question is that, is there any way that I can display the labels on the x-Axis in 90 degree ie the X-Axis labels "Apr May Jun" etc in 90 degree
Another feature FrappeChart lack is the HorizontalBars that is available in ABMChart For eg ABMchart.OptionsBar.HorizontalBars = True
Is this possible in FrappeChart ?
I am able to display FrappeChart on a page, but not able to display it on a container.
If I add FrappeChart on a Container then the chart is not displayed, instead the following text is displayed in the cell
var _MyContainer-frappechart2;
Am I missing any thing ?
Here is the code used.
B4X:
Dim MyContainer As ABMContainer
MyContainer.Initialize(page, "MyContainer","tabpagewhite")
MyContainer.AddRows(1,True, "").AddCells12(1,"")
MyContainer.AddRows(1,True, "").AddCells12(1,"")
MyContainer.AddRows(1,True,"").AddCellsOS(1,0,0,0,5,5,5,"").AddCellsOS(1,2,2,2,5,5,5,"")
MyContainer.AddRows(1,True,"").AddCellsOS(1,0,0,0,5,5,5,"").AddCellsOS(1,2,2,2,5,5,5,"")
MyContainer.AddRows(1,True, "").AddCells12(1,"")
MyContainer.AddRows(1,True, "").AddCells12(1,"")
MyContainer.AddRows(1,True, "").AddCells12(1,"")
'After adding the necessary rows BuildGrid is called
MyContainer.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
FrappeChart2.Initialize(page, "FrappeChart2", "bar", "Sales Chart", 250)
FrappeChart2.FrappeLabels.AddAll(Array As String("Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "Jan", "Feb", "Mar"))
FrappeChart2.AddDataSet("Invoices", "light-blue", Array As Int(50,80,70,80,100,140,170,60,90,40,60,130), Array As String())
' Adding FrappeChart to a container, does not display
MyContainer.Cell(6,1).AddComponent(FrappeChart2.ABMComp)
' If added FrappeChart to a page, then it is working.
'page.Cell(5,1).AddComponent(FrappeChart2.ABMComp)
Another question is that, is there any way that I can display the labels on the x-Axis in 90 degree ie the X-Axis labels "Apr May Jun" etc in 90 degree
Another feature FrappeChart lack is the HorizontalBars that is available in ABMChart For eg ABMchart.OptionsBar.HorizontalBars = True
Is this possible in FrappeChart ?
Last edited: