B4J Question [BANanoVuetify]: VMEChart is compiling but not running.

serro efe

Member
Licensed User
Longtime User
Hi @Mashiane
I am compiling the BANanoExtensionsDemo project, but I get a blank page.
Set to port 80
There is an error like this in the console output.
B4X:
Uncaught TypeError: o.a is undefined
     0585 http: //localhost/bvmextensions/scripts/app.js: 3213 ....


When I create and test a project myself, it still doesn't work.
This is how I use the code.
B4X:
    cont.AddRows(1).AddColumns4x3
    cont.AddRows(1).AddColumns12
    cont.AddRows(4).AddColumns4x3
    cont.AddRows(1).AddColumns4x3
    ...
    Dim pieD As List
    pieD.initialize
    pieD.Add(CreateMap("date": "01/01", "cost": 1523,"profit": 1523))
    pieD.Add(CreateMap("date": "01/02", "cost": 1223,"profit": 1623))
    pieD.Add(CreateMap("date": "01/03", "cost": 2123, "profit": 1723))
    pieD.Add(CreateMap("date": "01/04", "cost": 4123,"profit": 1423))
    pieD.Add(CreateMap("date": "01/05", "cost": 3123, "profit": 1223))
    pieD.Add(CreateMap("date": "01/06", "cost": 7123,"profit": 1123))
 
    Dim echart12 As VMEChart
    echart12.Initialize(vue, "e12", Me).SetPieChart
    echart12.SetColumns(Array("date", "cost", "profit"))
    echart12.SetRows(pieD)
    cont.AddComponent(7, 1, echart12.tostring)

    vm.AddContainer(cont)
    ...
Console output;
B4X:
Uncaught (in promise) ReferenceError: banano_bananovuetifyecharts_vmechart is not defined
    code http://localhost/demo/scripts/app.js:15123
    addpage http://localhost/demo/scripts/app.js:15069
    addpage http://localhost/demo/scripts/app.js:15069
    addpages http://localhost/demo/scripts/app.js:15123
    init http://localhost/demo/scripts/app.js:15123
    banano_ready http://localhost/demo/scripts/app.js:15123
When I remove the chart codes, the page feels normal. Why does not work. Do you have an idea
Thanks

The Expensesshow project does not open.

The Expensesshow project does not open.
When I add VMChartKick to my own project, the page opens and the graphic comes, but when I add a VMEChart I cannot open it. Could there be a situation with the version?
 
Last edited:

serro efe

Member
Licensed User
Longtime User
VMChartKick (v1.03) and VMEChart (v1.0) are attached in 2 references. I'm testing it on the same project.
It's okay when I don't use VMEChart, but it gives an error when I add the codes.
 
Upvote 0

serro efe

Member
Licensed User
Longtime User
The "2.2 Extensions Demo" project is compiled in the archive file, but a blank page comes up and starts giving too many warnings and errors.
When I edit the ECharts related places from the modECharts module as a comment line and compile them, the pages come up properly. But because I empty the EChart page, the page comes blank.
Still, there are too many errors and warnings. The most mistakes are caused by live.js. It puts too much load on the browser.
Do you have any idea about the reason? Can you please try the same project.
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
@serro efe , I have not maintained any of the code in the extensions as I was busy beefing up the core library. The live.js "errors" are not actually errors. When you run your app, its ran in "live" mode, something called "LiveSwapping" by Alain, the creator of BANano. LiveSwapping is on by default and I think due to this maintenance issue, it has not been turned off.

This means that any edits you make whilst running in debug mode are reflected to your output. This is a new addition to BANano by Alain for enhancements.

I understand that you are saying the ChartKick charts are working well so long, Great. I will make time and look at the extensions as soon as possible and considering the issues with VECharts at the moment, I would suggest that you dont use that component until I release another update.

Thanks for the heads up.

Ta!
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
I have added a .Refresh method for the charts, this means:

1. Define the chart variable in Process_Globals
2. Define the chart structure as you would want, whether at initialization stage i.e. Code or during runtime.
3. Call .Refresh for each chart, this forces the map to redraw itself.

This should solve it. I will let you known when the new update is released!

Ta!
 
Upvote 0

serro efe

Member
Licensed User
Longtime User
I don't know if the problem is caused by me.
My BANano version is 5.10
1- I copy the contents of "1. External Libraries" into "\ AdditionalLibs \ B4J".
2- I am running the "2.2 Extensions Demo" project, but echart1.Clear and echart1.Refresh remain undefined. From here I understand that "BANanoVuetifyECharts.b4xlib" is not the current version.
3- I am compiling the "BANanoVuetify-master \ 2.1 Extensions \ BANanoVuetifyECharts" project.
It gives such an error while compiling, but completes the compilation. "java.io.FileNotFoundException: D: \ BANanoVuetify-master \ 2.1 Extensions \ BANanoVuetifyECharts \ Objects \ b4xlibs_BANano \ bananovuetifycore \ B4J \ manifest.txt (The system cannot find the path specified)"
4- I am running the "2.2 Extensions Demo" project again, the version increases to 1.01, but it starts to give the following error.
"Cannot find: C: \ Program Files (x86) \ Anywhere Software \ B4J \ libraries \ bananoapp.jar"

Something has been said here for a solution, but I have trouble understanding.
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Hi

The correct version of VMECharts is 1.01. Its a good thing that you compiled it.

"Cannot find: C: \ Program Files (x86) \ Anywhere Software \ B4J \ libraries \ bananoapp.jar"

In the external libraries folder, copy banano.jar to bananoapp.jar and banano.xml to bananoapp.xml. To add, this was reported and will be fixed with the next version of banano.
 
Upvote 0
Top