You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if i misunderstood something, but I've reopened issue #1679 as @liuxuan30 mentioned. Here is some additional info/logs.
I've placed print("e1.x: \(e1.x), e1.y: \(e1.y * phaseY)") in line 404 in LineChartRenderer, right in front of applying transform to entry point. And to print the actual point on chart after applying transform print("point: \(pt)") in line 409.
That's a part of logs what I got on 32bit device:
e1.x: 1477047261.0, e1.y: 18063.0
point: (251.571, 184.381)
e1.x: 1477047293.0, e1.y: 18058.0
point: (251.571, 239.22)
As you can see, the xValues of two points are different, but their x coordinates are the same, which is obviously not correct. And some logs for 64bit device:
e1.x: 1477047638.0, e1.y: 1.08811
point: (259.413942337036, 236.467363886797)
e1.x: 1477047639.0, e1.y: 1.08809
point: (259.638811230659, 239.2275390625)
Here you can see, that xValue of the first point is only 1 lower, than the second one, and their x coordinates on chart are different.
And speaking about labels positions. I've put print("position before applying: \(position)") in line 225 in XAxisRenderer. Right between position.y = 0.0 position = position.applying(valueToPixelMatrix)
and print("position after applying: \(position)") in line 253, right before drawLabel calling.
Here are the logs for 32bit device:
position before applying: (1.47705e+09, 0.0)
position after applying: (128.611, 221622.0)
position before applying: (1.47705e+09, 0.0)
position after applying: (167.408, 221622.0)
position before applying: (1.47705e+09, 0.0)
position after applying: (167.408, 221622.0)
position before applying: (1.47705e+09, 0.0)
position after applying: (206.206, 221622.0)
As you can see - position for two labels is the same. Here is a screenshot.
Here is my properties for chartView:
`chartView.delegate = self
And here you could see that labels sometimes have complete different space between them, but intervals are the same:
And on 64bit device, everything works perfect, as I already mentioned.
Thanks again for any help, please tell me if some more information needed.
The text was updated successfully, but these errors were encountered:
Sorry if i misunderstood something, but I've reopened issue #1679 as @liuxuan30 mentioned. Here is some additional info/logs.
I've placed
print("e1.x: \(e1.x), e1.y: \(e1.y * phaseY)")
in line 404 in LineChartRenderer, right in front of applying transform to entry point. And to print the actual point on chart after applying transformprint("point: \(pt)")
in line 409.That's a part of logs what I got on 32bit device:
e1.x: 1477047261.0, e1.y: 18063.0
point: (251.571, 184.381)
e1.x: 1477047293.0, e1.y: 18058.0
point: (251.571, 239.22)
As you can see, the xValues of two points are different, but their x coordinates are the same, which is obviously not correct. And some logs for 64bit device:
e1.x: 1477047638.0, e1.y: 1.08811
point: (259.413942337036, 236.467363886797)
e1.x: 1477047639.0, e1.y: 1.08809
point: (259.638811230659, 239.2275390625)
Here you can see, that xValue of the first point is only 1 lower, than the second one, and their x coordinates on chart are different.
And speaking about labels positions. I've put
print("position before applying: \(position)")
in line 225 in XAxisRenderer. Right betweenposition.y = 0.0 position = position.applying(valueToPixelMatrix)
and
print("position after applying: \(position)")
in line 253, right before drawLabel calling.Here are the logs for 32bit device:
position before applying: (1.47705e+09, 0.0)
position after applying: (128.611, 221622.0)
position before applying: (1.47705e+09, 0.0)
position after applying: (167.408, 221622.0)
position before applying: (1.47705e+09, 0.0)
position after applying: (167.408, 221622.0)
position before applying: (1.47705e+09, 0.0)
position after applying: (206.206, 221622.0)
As you can see - position for two labels is the same. Here is a screenshot.
![screenshot32bit](https://cloud.githubusercontent.com/assets/4150704/19591288/eacce5dc-977e-11e6-8356-bbcd43db3fea.png)
Here is my properties for chartView:
`chartView.delegate = self
and properties for dataSet:
`set = LineChartDataSet(values: dataEntries, label: quote)
And here you could see that labels sometimes have complete different space between them, but intervals are the same:
![2016-10-21 11 17 03](https://cloud.githubusercontent.com/assets/4150704/19591520/2ce7a992-9780-11e6-991d-a63176e85e26.png)
And on 64bit device, everything works perfect, as I already mentioned.
Thanks again for any help, please tell me if some more information needed.
The text was updated successfully, but these errors were encountered: