B4J Question xChart library - How to customize text and format numbers

raphaelcno

Active Member
Licensed User
Longtime User
Hello,

I'm using the impressive xChart library with B4J (https://www.b4x.com/android/forum/threads/b4x-xui-xchart-class-and-b4xlib.91830/).

I have a few questions regarding text and number formatting on a YXChart, see attached screenshot:



1. Is it possible to replace "x" and "y" with user defined strings?

2. Is it possible to format numbers, for instance to show all digits and remove scientific notation?
Is it possible to add a user defined string behind the numeric value?

3. Is it possible to format axis numbers, for instance to show all digits and remove scientific notation?

4. When the mouse is close to a point on a curve, the x and y values of this point are displayed.
At the same time, the X and Y values accessible in Sub xChart1_Touch are the values of the position of the mouse, which is not exactly the position of the point on the curve.
Is there a way to access to the x and y values of the point on the curve instead of the position of the mouse?

Thank you in advance for your help

Raphaël
 

raphaelcno

Active Member
Licensed User
Longtime User
The data are not logged at regular intervals, sometimes every five minutes, sometimes every hour. If I use a line chart, the horizontal distance between two points will be the same for a 5-minute interval and for a 1-hour interval.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…