Android Question [solved] Resize DynamicLines in xChart

angel_

Member
Licensed User
When I try to resize DynamicLines1, for example:
B4X:
DynamicLines1.Height = 50%y
DynamicLines1.Width = 50%y
It occurs a bug:
B4X:
Error occurred on line: 1140 (xChart)
java.lang.NullPointerException: Attempt to read from field 'double[] b4a.xChartsDemo.xchart$_pointdata.YArray' on a null object reference
Line 1140:
B4X:
MinMaxMeanValues(2) = MinMaxMeanValues(2) / Points.Size / PD.YArray.Length
How can I fix it?
 
Top