Fix issue related to values not being drawn

This commit is contained in:
Philipp Jahoda 2016-06-19 21:42:38 +02:00
parent 95bd8a580e
commit adfc9a5c77

View file

@ -131,7 +131,7 @@ public class Transformer {
*/
public float[] generateTransformedValuesBubble(IBubbleDataSet data, float phaseY, int from, int to) {
final int count = (int) Math.ceil(to - from) * 2; // (int) Math.ceil((to - from) * phaseX) * 2;
final int count = (to - from + 1) * 2; // (int) Math.ceil((to - from) * phaseX) * 2;
float[] valuePoints = new float[count];
@ -189,7 +189,7 @@ public class Transformer {
public float[] generateTransformedValuesCandle(ICandleDataSet data,
float phaseX, float phaseY, int from, int to) {
final int count = (int) Math.ceil((to - from) * phaseX) * 2;
final int count = (int) ((to - from) * phaseX + 1) * 2;
float[] valuePoints = new float[count];