D
Deleted member 103
Guest
Hi,
I am using the "xChart" class in one of my apps and have a display error in B4i.
The red line is displayed in B4a, but not in B4i, and I cannot explain why.
Somehow, the graphics update in B4i does not work.
In the class I added this function to show this red line.
Does the class already have such a function? Then my function would not be necessary.
I call the function like this:
B4a-screenshot:
B4i-screenshot:
I am using the "xChart" class in one of my apps and have a display error in B4i.
The red line is displayed in B4a, but not in B4i, and I cannot explain why.
Somehow, the graphics update in B4i does not work.
In the class I added this function to show this red line.
Does the class already have such a function? Then my function would not be necessary.
B4X:
Public Sub DrawReferenzLine(refwert As Double)
Dim mYAxis0 = Graph.Bottom + Scale(sY(0)).MinVal * Scale(sY(0)).Scale As Int
xcvsGraph.DrawLine(Graph.Left, mYAxis0 - refwert * Scale(sY(0)).Scale, Graph.Right, mYAxis0 - refwert * Scale(sY(0)).Scale, Colors.Red, 2dip)
xcvsGraph.Invalidate
End Sub
I call the function like this:
B4X:
Private Sub CreateTestChart
Log("CreateTestChart")
...
...
BarChart1.DrawChart
BarChart1.DrawReferenzLine(2)
End Sub
B4a-screenshot:
B4i-screenshot: