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

klaus

Expert
Licensed User
Longtime User
Sorry for replying only today, I missed your post.
Logarithmic scales are only implemented in YXCharts.
The X axis in Line charts is not a numeric axis and not necessarily with constant intervals.

What do you want to display with the cursor in the YXChart?
You can set an event for the cursor which returns the coordinates of the cursor position.
 
Last edited:

rbghongade

Active Member
Licensed User
Longtime User
Thanks Klaus, for the reply. I understand that xCharts cannot be logarithmic , that is fine. Instead I wanted the cursor to show the magnitude response of a circuit. For that we need to measure the mid frequency response, that is, magnitude value and find the 3dB down response to get the bandwidth. I shall illustrate with a figure .
 
Last edited:

klaus

Expert
Licensed User
Longtime User
The xChart Class has been updated to Version 5.3
Added the four properties below.
- DrawGridFrame As Boolean, True by default
- DrawHorizontalGridLines As Boolean, True by default
- DrawVerticallGridLines As Boolean, True by default
- YZeroAxisHighlight As Boolean, True by default

The first post has been updated.
 

Dadaista

Active Member
Licensed User
Longtime User
Hi Klaus
How many bars can be showed on the x axis? (I am trying to show all days in 3 months but nothing drawing)
Thank you
 

Dadaista

Active Member
Licensed User
Longtime User
Hi @klaus
Sure!!!!

Error in line 375
B4X:
Texts.AxisTextColor = xui.PaintOrColorToColor(Props.Get("AxisTextColor"))
B4X:
java.lang.NullPointerException
    at anywheresoftware.b4a.objects.B4XViewWrapper$XUI.PaintOrColorToColor(B4XViewWrapper.java:886)

?
Thanks @klaus

Edit!!
If I comment the line, Works!!. but some text in x Axis is not showed... but that is not a problem for mi because the bar is showed.
Logs says: "Bar value text size too small"
 
Last edited:

klaus

Expert
Licensed User
Longtime User

Sergio Barbosa de Souza

Member
Licensed User
Hello, with "YXChart1.DisplayValues = True" I don't know how to change the letter "x" in the display with another text, is that possible? thank you.

 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…