B4J Library [B4X] [XUI] xChart Class and b4xlib

Wosl

Member
Thx for updaten the lib.

I will check the conflict between xchart.bas and xchart.b4xlib. I suppose i need to review my file structure first, as mentioned ealier. Anyhow, super support.

Just some remarks regarding any text to be added:
- In a simple bar chart it is useful to show the end values of the bars optionally, or the intermediate values for stacked bars
- in the above chart it would be 16,2% and 43,0% percent
- if it is not possible to show the numbers automatically, I could imagine to add text strings to the chart positioning them in chart coordinates.

I propose an enhancement to the xChart lib to add numbers automatically (as option). If you need some more infos about that proposal, please send me a mail to discuss the details.

Wosl
 

klaus

Expert
Licensed User
Longtime User
I propose an enhancement to the xChart lib to add numbers automatically (as option).
What exactly do you mean with this ?
The values of the partial bars ?
In stacked bar charts this is difficult because if you have small parts where to display the values specially when you have small bars.
I prefer to display the values when clicking an the chart.
 

Jerryk

Active Member
Licensed User
Longtime User
In my app (which is already in the Play store), I have fixed all the errors in Crashlytics except one. It seems to be a bug in the xChart library. The error occurred on Pixel Pro 16, Android 12. I am sending the dump.
 

Attachments

  • cz.flashcards3000_issue_93d5a49d3471330e848f293fd5f00469_crash_session_69FC482D030D00010C290DB...txt
    12.8 KB · Views: 16

Peter Simpson

Expert
Licensed User
Longtime User
In my app (which is already in the Play store), I have fixed all the errors in Crashlytics except one. It seems to be a bug in the xChart library. The error occurred on Pixel Pro 16, Android 12. I am sending the dump.
It looks like B4XCanvas.ClearRect is being called, but B4XRext is a null object because it is NOT initialized, this is happening during a touch event.

You probably need to add a Sleep(0) Somewhere in your code if it is not happening on your device but it is on Google's virtual test devices.

I can't see it being xChart itself, but I could be incorrect. I presume that you're using either the line or bar chart?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…