iOS Question [Solved] [xChart] error with YScaleMaxValue

angel_

Well-Known Member
Licensed User
Longtime User
I have a chart YX_CHART log-log with this parameters:
B4X:
chtCurvas.YScaleMinValue = 0.008
chtCurvas.YScaleMaxValue = 4000
(I have this same code en B4A and I don't have any problem)

But I doesn't see the lines y-axis (see image), if I change:
B4X:
chtCurvas.YScaleMaxValue = 900
I can see the lines (see image) but If I change again chtCurvas.YScaleMaxValue = 901, appears this error

B4X:
Error occurred on line: 4018 (xChart)
Cannot parse: +∞
Stack Trace: (
  CoreFoundation       <redacted> + 252
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  NameApp         -[B4I ObjectToNumber:] + 468
  NameApp         -[b4i_xchart _round2:::] + 892
  NameApp         -[b4i_xchart _drawyscalelog:] + 5092
  NameApp         -[b4i_xchart _drawgrid:] + 1884
  NameApp         -[b4i_xchart _drawchart:] + 2772
  CoreFoundation       <redacted> + 144
  CoreFoundation       <redacted> + 292
 NameApp         +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
 NameApp         -[B4IShell runMethod:] + 448
 NameApp         -[B4IShell raiseEventImpl:method:args::] + 1648
 NameApp         -[B4IShellBI raiseEvent:event:params:] + 1580
 NameApp         -[B4IDebugResumableSub resume::] + 356
 NameApp         __21-[B4ICommon Sleep:::]_block_invoke + 60
 libdispatch.dylib    <redacted> + 24
 libdispatch.dylib    <redacted> + 16
 libdispatch.dylib    <redacted> + 1068
 CoreFoundation       <redacted> + 12
 CoreFoundation       <redacted> + 1924
 CoreFoundation       CFRunLoopRunSpecific + 436
 GraphicsServices     GSEventRunModal + 104
 UIKitCore            UIApplicationMain + 212
 NameApp          main + 124
 libdyld.dylib        <redacted> + 4
)

Any idea to put YScaleMaxValue = 4000 and see all lines (y-axis)?
 

Attachments

  • thumbnail.jpg
    21.2 KB · Views: 160
  • thumbnail.jpg
    52 KB · Views: 161
Cookies are required to use this site. You must accept them to continue using the site. Learn more…