BruceParmele
BruceParmele
I appreciate your help.... ``` private final float VALUE_TEXT_SIZE = 12f; .... // DIASTOLIC CHART LineDataSet diastolicDataset = new LineDataSet(generateData("DIASTOLIC"), "Diastolic"); diastolicDataset.setColor(Color.BLACK); diastolicDataset.setLineWidth(3f); // diastolicDataset.setFillColor(Color.WHITE); diastolicDataset.setDrawFilled(false); diastolicDataset.setDrawCubic(true); diastolicDataset.setCircleSize(4f); diastolicDataset.setCircleColor(Color.BLUE); diastolicDataset.setCircleColorHole(Color.WHITE);...
Here is all three graph lines... ``` ... // SYSTOLIC CHART LineDataSet systolicDataset = new LineDataSet(generateData("SYSTOLIC"), "Systolic"); systolicDataset.setColor(Color.BLUE); systolicDataset.setLineWidth(3f); systolicDataset.setDrawFilled(false); systolicDataset.setDrawCubic(true); systolicDataset.setCircleSize(4f); systolicDataset.setCircleColor(Color.BLACK); systolicDataset.setCircleColorHole(Color.WHITE); systolicDataset.setValueTypeface(Typeface.DEFAULT); systolicDataset.setValueTextSize(VALUE_TEXT_SIZE); // DIASTOLIC CHART LineDataSet...
Great question! I removed the first three `LineData` objects, Still have the same issue.
I have this same issue with another app I am making. So i am sure it's something I am not doing properly. I can rotate the screen or back out...
I tried it in three places to no avail from right after the chart instantiation and two more other places.
I am seeing this in the logcat.... ``` 05-19 15:10:43.827 4645-4645/com.stoicdev.simplebptrackerpro E/MPChartLib-Utils﹕ Utils NOT INITIALIZED. You need to call Utils.init(...) at least once before calling Utils.convertDpToPixel(...). Otherwise conversion does not...
I moved the chart creation and she is working great now. Thanks Phillip!
@pierotofy Your solution worked for me. Thanks.