diff --git a/MPChartExample/src/com/xxmassdeveloper/mpchartexample/CombinedChartActivity.java b/MPChartExample/src/com/xxmassdeveloper/mpchartexample/CombinedChartActivity.java index 25ff1835e..3d9846037 100644 --- a/MPChartExample/src/com/xxmassdeveloper/mpchartexample/CombinedChartActivity.java +++ b/MPChartExample/src/com/xxmassdeveloper/mpchartexample/CombinedChartActivity.java @@ -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); diff --git a/MPChartLib/src/com/github/mikephil/charting/utils/Transformer.java b/MPChartLib/src/com/github/mikephil/charting/utils/Transformer.java index 349c76aae..d87a5f5a8 100644 --- a/MPChartLib/src/com/github/mikephil/charting/utils/Transformer.java +++ b/MPChartLib/src/com/github/mikephil/charting/utils/Transformer.java @@ -128,7 +128,7 @@ public float[] generateTransformedValuesScatter(List entries, public float[] generateTransformedValuesBubble(List 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]; @@ -137,7 +137,7 @@ public float[] generateTransformedValuesBubble(List 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; } }