angel_ Well-Known Member Licensed User Longtime User Oct 22, 2019 #1 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?
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?
klaus Expert Licensed User Longtime User Oct 22, 2019 #2 Where and how do you resize the chart in your code ? Upvote 0
angel_ Well-Known Member Licensed User Longtime User Oct 22, 2019 #3 klaus said: Where and how do you resize the chart in your code ? Click to expand... Thank you, I put the code after DynamicLines1.DrawChart and It works. Upvote 0
klaus said: Where and how do you resize the chart in your code ? Click to expand... Thank you, I put the code after DynamicLines1.DrawChart and It works.