Fix issue related to values not being drawn
This commit is contained in:
parent
95bd8a580e
commit
adfc9a5c77
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue