Skip to content

Commit

Permalink
Fixed BubbleChart issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJay committed May 5, 2015
1 parent 710d5de commit 2eca41f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected void onCreate(Bundle savedInstanceState) {

mChart = (CombinedChart) findViewById(R.id.chart1);
mChart.setDescription("");
mChart.setBackgroundColor(Color.WHITE);
mChart.setDrawGridBackground(false);
mChart.setDrawBarShadow(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public float[] generateTransformedValuesScatter(List<? extends Entry> entries,
public float[] generateTransformedValuesBubble(List<? extends Entry> entries,
float phaseX, float phaseY, int from, int to) {

final int count = (int)Math.ceil((to - from) * phaseX) * 2;
final int count = (int) Math.ceil(to - from) * 2; // (int) Math.ceil((to - from) * phaseX) * 2;

float[] valuePoints = new float[count];

Expand All @@ -137,7 +137,7 @@ public float[] generateTransformedValuesBubble(List<? extends Entry> entries,
Entry e = entries.get(j / 2 + from);

if (e != null) {
valuePoints[j] = (float)(e.getXIndex() - from) * phaseX + from;
valuePoints[j] = (float) (e.getXIndex() - from) * phaseX + from;
valuePoints[j + 1] = e.getVal() * phaseY;
}
}
Expand Down

0 comments on commit 2eca41f

Please sign in to comment.